Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple examples #6

Closed
emeeks opened this issue Sep 1, 2017 · 19 comments
Closed

Add simple examples #6

emeeks opened this issue Sep 1, 2017 · 19 comments

Comments

@emeeks
Copy link
Member

emeeks commented Sep 1, 2017

Add examples in the interactive documentation that show the code for minimal, effective traditional charts:

  • Bar Chart (Stacked Bar Chart separately)
  • Pie Chart
  • Line Chart
@fengshuo
Copy link

fengshuo commented Sep 8, 2017

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, 😀

@emeeks
Copy link
Member Author

emeeks commented Sep 8, 2017

What a silly mistake, thanks for catching that.

@sa-mm
Copy link

sa-mm commented Sep 13, 2017

Also, that tutorial might be easier to follow if the constant and key in the constant weren't both called "data."

@bengarvey
Copy link

Include the data if possible in the code examples.

@emeeks
Copy link
Member Author

emeeks commented Sep 20, 2017

First simple tutorial for a bar chart:
https://emeeks.github.io/semiotic/#/semiotic/creatingbarchart
More coming soon.

@emeeks
Copy link
Member Author

emeeks commented Sep 22, 2017

@zettadam
Copy link

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.

@emeeks
Copy link
Member Author

emeeks commented Oct 29, 2017

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.

@curran
Copy link
Contributor

curran commented Nov 12, 2017

Has anyone had success with Semiotic on bl.ocks.org?

Perhaps possible using babel-standalone.

@emeeks
Copy link
Member Author

emeeks commented Nov 13, 2017

People have shared examples using StackBlitz and I know there was some talk about creating an unpkg version, which would make it blocks friendly.

@curran
Copy link
Contributor

curran commented Nov 13, 2017

Just discovered this https://github.com/emeeks/semiotic-examples

@emeeks
Copy link
Member Author

emeeks commented Nov 14, 2017

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.

@curran
Copy link
Contributor

curran commented Nov 15, 2017

Nice! Are there video recordings of the Twitch sessions?

@emeeks
Copy link
Member Author

emeeks commented Nov 15, 2017

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.

@timelyportfolio
Copy link

timelyportfolio commented Nov 18, 2017

@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]}

@timelyportfolio
Copy link

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.

@curran
Copy link
Contributor

curran commented Nov 20, 2017

@timelyportfolio Excellent!

@curran
Copy link
Contributor

curran commented Dec 3, 2017

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

@emeeks
Copy link
Member Author

emeeks commented Dec 4, 2017

Added it to https://github.com/emeeks/semiotic/wiki/Tutorials

@emeeks emeeks closed this as completed Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants