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

documentation? #3

Open
isthisthat opened this issue Nov 19, 2018 · 5 comments
Open

documentation? #3

isthisthat opened this issue Nov 19, 2018 · 5 comments

Comments

@isthisthat
Copy link

Hello, this is an extremely powerful extension! Thank you for your work. I'm struggling to work my way through the richness of features. Is there any additional documentation? If not, I'm happy to help write it. For instance, I was wondering how I can make a histogram or scatterplot. Thanks again.

@lunu-bounir
Copy link
Owner

No, unfortunately, there is no additional doc yet. We should add whatever we figure out to the FAQS page to hopefully help others.

So like usual, you will need to export data to math.js, and then use the plot command. At the moment this function only supports the line chart format. We can simply extend the functionality. Let me know what charts might be of interest and I'll see how we can expand the built-in function.

@isthisthat
Copy link
Author

I would say a histogram plot(x, type='histogram'), scatter plot plot(x, y, type='scatter') and a bar plot plot(x, y, type='bar') would already be quite powerful. Then perhaps the ability to color/group by a third column plot(x, type='histogram', groupby=z) would satisfy most (of my) use cases.

lunu-bounir added a commit that referenced this issue Nov 22, 2018
@lunu-bounir
Copy link
Owner

So in the new UI we can have the following charts:
screen shot

I would say a histogram

I am not if histogram is a type. It is more of how the bar chart is displayed, right?

Then perhaps the ability to color/group by a third column

You can define your own color set like plot([10, 20, 30], "type=doughnut&backgroundColor=[red,blue, green]")
screen shot

To group multiple chars, write each set in a new line:
screen shot

@xmarti6
Copy link

xmarti6 commented Jan 20, 2019

Hi! Congrats for this useful tool! I'm just playing around to check its functionality. I was wondering if it would be possible to export data+charts to HTML format in order to save the analyses, I tried copy/paste but no luck. Many thanks in advance.

@isthisthat
Copy link
Author

Hi again. Sorry for the hiatus and thanks for adding these options! Can you give an example of how you would make a histogram using math.js and a bar plot? Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants