Changelog
What's new?
0.5.3
Fixes@jgmc/core- README updated
@jgmc/vanilla- README updated
@jgmc/react- Add key to gradient elements for react warning
- Remove
reactas dependency, should be just peer dep - Export all types too
0.5.2
New- NEW PACKAGE!
@jgmc/react! Contains memoized react components for each chart type.<BarChart /><BarChartStacked /><DonutChart /><PieChart /><LineChart />
@jgmc/vanillabarchart&barchartstacked- Fix: add image label width/height to created image labels
- Fix: improper sizing when given datapoints that exceeded given width/height
0.5.1
Fixes- This release is mainly just a version bump to update
READMElinks to the updated docs site!
v0.5.0
Major
Update!
Dev Note
Major
Update!
This is the biggest update yet by far. The entire library has been migrated to a monorepo structure with scoped packages, allowing for framework specific exports, additional optimizations, and more! Framework specific exports is also the next big feature I'm working on.
As such, the name of the package has changed, gone is toomanycharts and in is @jgmc/...!
Previously all functionality lived under toomanycharts, but now the math & framework agnostic code lives in @jgmc/core. Additionally I had one single dependency in-use for creating charts linkedom which is a fantastic library, but as part of this move I've removed it & am now just using strings!
This has allowed for a 3x speed increase, a smaller bundle size, and means aside from the @jgmc/core package there are now zero dependencies! Additionally strings are incredibly flexible, so right out of the box @jgmc/vanilla is completely SSR compatible, and can technically be used anywhere you can use a string!
That being said framework specific exports are still on the way, so that framework strengths can be properly utilized, but in the meantime you can use @jgmc/vanilla in any framework, and it's already SSR compatible!
Not only that but aside from a few exceptions, everything should work pretty much the same in terms of usage, aside from the output.
Breaking Changes- installation moved!
toomanychartsis now@jgmc/vanilla@jgmc/corefor math & framework agnostic code
- removed
linkedomdependency, now just using strings for charts - all charts under
@jgmc/vanillareturn strings
0.2.3
Breaking Changes- Removed
classesoption from all charts- replacing with sensible default classes applied to chart elements
- See Charts Classes for more info
0.2.2
Dev NoteAfter a long break I came back and finished up the initial implementation of the asciiBarchart I'd been working on. While I plan to continue with ASCII chart types I felt there was still plenty more worthwhile things to add in to SVG charts. The big one being two very common chart types - pie & donut charts! Those have both been added.
Next up I will be doing some cleanup / refinement of the codebase. Standardizing some things across chart types, doing some type naming adjustments, etc... You can check the TODO.md in the repo for specifics.
After cleanup & refinement I'll be doing work on getting framework specific exports working.
New ExperimentalExperimental features are features that are in the early stages of development, and may be subject to change or removal without a major version bump.
0.2.1
Breaking Changescolorsis nowfillColors
- Added
strokeColorstobarchartandbarchartStacked - Added
strokeWidthstobarchartandbarchartStacked
0.2.0
New- Revamped labeling system:
- dataLabels: 'literal' or 'percentage' for automatic value / percentage labels on bars
- imageLabels: supply images (with optional topText / bottomText) for bar and line charts
- Support for combining normal labels, dataLabels, and imageLabels simultaneously
- Improved docs with styling guidance (labelClass, image label grouping classes)
- Website updated
0.1.9
Fixes- Fixed issue with linear gradients being incorrectly set for
barchart - Fixed an issue where
maxfor barcharts was not being properly allowed
- Few new parameters that are on the more advanced in usage
all chart typesvWidthtied to resultingviewBoxwidthvHeighttied to resultingviewBoxheight
linechartminallows for themin-yofviewBox
linechartcan now properly handle negative values
0.1.8
Fixes- Removed some console logs from
linechart
0.1.7
Fixes- Fixed
lineType: "smooth"- All lines now perfectly smooth, regardless of the amount of datapoints!
- Fixed issue with incorrect automatic y-values for linecharts
0.1.6
We've got linecharts! That's right this update introduces the linechart function.
0.1.1
This update notably includes the new barchartStacked function, along with some new options.
- New chart:
barchartStacked - New option for
barchartandbarchartStackedlabelColorsallows for coloring the labels separately- not required
textClassis nowlabelClasstextGroupClassis nowlabelGroupClass