You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When drawing complex scientific charts, regular line/bar/pie chart libraries are not very useful. This aim of this library is to enable any chart to be drawn, no matter how complex
Stating that bar and pie charts would be possible with this library, however there is no clear way of creating these in abstract chart.
I managed to make this using the current functionality of abstract-chart:
However, as far as I know,
there's no way to set the fill colour of the pie slices
there's no way to hide the axis completely
the ChartPoint's label is weirdly offset
the pie gets squished even though both width and height is set to 400.
I believe DIAQ has implemented coloured areas locally, so that could be used as reference.
As for bar charts, I believe they suffer the same problems as above.
It would also be quite nice to have examples of a pie chart and bar chart to ease development for other devs looking to use this library.
The text was updated successfully, but these errors were encountered:
IIRC the basic idea in abstract-chart is that you draw lines etc. onto a coordinate system that is represented as the axes of the diagram you are drawing. Also it is possible to have multiple axes and so multiple coordinate systems.
A pie chart does not really have any axes so for that reason I would say abstract-chart might not be a good fit for pie charts. Of course it would still be possible but maybe not worth the trouble.
Actually abstract-chart may not be the best name for the package. Perhaps abstract-graph would be a better fit.
What is a chart? Visual representations of data. They may take many different forms, and style data in different ways. Graphs have a narrower definition. They use data plotted on a grid with axes representing two variables.
The readme says:
Stating that bar and pie charts would be possible with this library, however there is no clear way of creating these in abstract chart.
I managed to make this using the current functionality of abstract-chart:
However, as far as I know,
I believe DIAQ has implemented coloured areas locally, so that could be used as reference.
As for bar charts, I believe they suffer the same problems as above.
It would also be quite nice to have examples of a pie chart and bar chart to ease development for other devs looking to use this library.
The text was updated successfully, but these errors were encountered: