Comments (19)
Also, that tutorial might be easier to follow if the constant and key in the constant weren't both called "data."
from semiotic.
Here is a quick example http://blockbuilder.org/timelyportfolio/2657963ea577afe43b6eeab798b31c67 using my temporary standalone version of Semiotic. I have not worked out the CSS part yet.
from semiotic.
Include the data if possible in the code examples.
from semiotic.
Added it to https://github.com/emeeks/semiotic/wiki/Tutorials
from semiotic.
In the XYFrame
tutorial here, the code snippet shows:
<XYFrame
lines={data}
xAccessor="timestamp"
yAccessor="sales"
xScaleType={scaleTime()}
lineDataAccessor="data"
lineStyle={d => ({ stroke: d.color, fill: d.color })}
/>
but it will throw The prop size is marked as required in
XYFrame, but its value is undefined
, would be easier for first time user if the code snippet has what's on the example page, like adding size
prop, 😀
from semiotic.
What a silly mistake, thanks for catching that.
from semiotic.
First simple tutorial for a bar chart:
https://emeeks.github.io/semiotic/#/semiotic/creatingbarchart
More coming soon.
from semiotic.
Two more examples:
Line chart:
https://emeeks.github.io/semiotic/#/semiotic/creatinglinechart
Pie/Donut/Nightingale Chart
https://emeeks.github.io/semiotic/#/semiotic/creatingpiechart
from semiotic.
Would it be possible to make data
passed to visualizations easier to understand? In many examples, it seems a little magical.
For example, I took a look at histogram
summaryType in ORFrame demo. The docs are unclear how one would format data for this type of visualization. I understand that they are 'funnelized' because I tried to follow the source code, but I failed to find how it is processed.
I created a HistogramChart based on that example and copied generated data
, but the output visualization was nowhere near what I expected.
from semiotic.
This is a good point @zettadam. I'll put together a summaryType walkthrough and be very specific about this. I think the ORFrame data abstraction is the most "magic" part of Semiotic based on feedback. I think it's a good model but I know I need to explain it better.
from semiotic.
Has anyone had success with Semiotic on bl.ocks.org?
Perhaps possible using babel-standalone.
from semiotic.
People have shared examples using StackBlitz and I know there was some talk about creating an unpkg version, which would make it blocks friendly.
from semiotic.
Just discovered this https://github.com/emeeks/semiotic-examples
from semiotic.
Yeah, it's my Twitch repo. I've been so irregular with Twitch that I haven't sort of mentally integrated the results with the rest of Semiotic, but it's getting to be a growing set of examples.
from semiotic.
Nice! Are there video recordings of the Twitch sessions?
from semiotic.
The videos are stored for two weeks at https://www.twitch.tv/elijahmeeks/videos/all and I've downloaded the old ones and I need to edit them and put them on Youtube.
from semiotic.
@curran, also you might want to follow along #70 for the standalone discussion for usage with bl.ocks or blockbuilder. If you wanted to use my bundled version, https://rawgit.com/timelyportfolio/semiotic/standalone/dist/semiotic.js. Will be namespaced Semiotic
, so when using
<Semiotic.ORFrame
size={[700, 700]}
from semiotic.
@timelyportfolio Excellent!
from semiotic.
Is there a "tutorials" section anywhere? If so, this would be a good link to add there https://medium.com/@matt_herman/shared-tooltips-in-semiotic-cd8fdf140d5a
from semiotic.
Related Issues (20)
- Use Vercel to deploy developer documentation for latest HOT 2
- Decide whether to consolidate semiotic and semiotic-docs repo HOT 8
- Check if auto-external plugin can warn us about import errors
- Add to contributing doc when to upgrade dependencies.
- Run typescript checks in CI
- Add documentation issues from archived repo
- oSort with connectors causes issues in OrdinalFrame
- Create changelog for 2.0 HOT 2
- Add Migration Guide for 1.0 users
- Replace element-resize-event HOT 5
- Sorting in OrdinalFrame Doesn't Work With Dynamic Column Width
- Frames' space allocation behavior can be generalized
- Bundled size quite large HOT 3
- Canvas Rendering Doesn't Initially Render HOT 3
- Remove redundant attribute [Was: class and className entries] HOT 1
- Transition tooltip position HOT 1
- More position options for the legend HOT 3
- How to use with nteract?
- Ability to specify width in terms of percentage
- Some of the website pages are fully blank
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semiotic.