chartist 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +1 -1
  2. package/dist/_settings.scss +89 -0
  3. package/dist/axes/Axis.d.ts.map +1 -1
  4. package/dist/charts/BarChart/BarChart.d.ts +4 -1
  5. package/dist/charts/BarChart/BarChart.d.ts.map +1 -1
  6. package/dist/charts/BarChart/BarChart.types.d.ts +25 -0
  7. package/dist/charts/BarChart/BarChart.types.d.ts.map +1 -1
  8. package/dist/charts/LineChart/LineChart.d.ts +6 -1
  9. package/dist/charts/LineChart/LineChart.d.ts.map +1 -1
  10. package/dist/charts/LineChart/LineChart.types.d.ts +30 -0
  11. package/dist/charts/LineChart/LineChart.types.d.ts.map +1 -1
  12. package/dist/charts/PieChart/PieChart.d.ts +10 -0
  13. package/dist/charts/PieChart/PieChart.d.ts.map +1 -1
  14. package/dist/charts/PieChart/PieChart.types.d.ts +42 -0
  15. package/dist/charts/PieChart/PieChart.types.d.ts.map +1 -1
  16. package/dist/core/types.d.ts +61 -0
  17. package/dist/core/types.d.ts.map +1 -1
  18. package/dist/index.cjs +34 -6
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.css +1 -1
  21. package/dist/index.css.map +1 -1
  22. package/dist/index.js +34 -6
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.scss +204 -0
  25. package/dist/index.umd.js +1 -1
  26. package/dist/index.umd.js.map +1 -1
  27. package/dist/interpolation/cardinal.d.ts +2 -0
  28. package/dist/interpolation/cardinal.d.ts.map +1 -1
  29. package/dist/interpolation/monotoneCubic.d.ts +2 -0
  30. package/dist/interpolation/monotoneCubic.d.ts.map +1 -1
  31. package/dist/interpolation/none.d.ts +2 -0
  32. package/dist/interpolation/none.d.ts.map +1 -1
  33. package/dist/interpolation/simple.d.ts +2 -0
  34. package/dist/interpolation/simple.d.ts.map +1 -1
  35. package/dist/interpolation/step.d.ts +3 -1
  36. package/dist/interpolation/step.d.ts.map +1 -1
  37. package/dist/utils/functional.d.ts +1 -1
  38. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:block;display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#f05b4f}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{content:"";display:table;clear:both}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}
1
+ .ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{content:"";display:table;clear:both}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}
2
2
  /*# sourceMappingURL=index.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources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AAA,CACA,UEumBJ,CFpmBE,oBACE,aAAA,CACA,iBAAA,CACA,KAAA,CACA,MEsmBJ,CFrZM,mBAxOJ,aAAA,CACA,iBAAA,CACA,UEioBF,CF/nBE,0BACE,aAAA,CACA,UAAA,CACA,UAAA,CACA,OAAA,CACA,QAAA,CACA,oBEioBJ,CF9nBE,yBACE,UAAA,CACA,aAAA,CACA,UEgoBJ,CF7nBE,uBACE,aAAA,CACA,iBAAA,CACA,KAAA,CACA,ME+nBJ,CF9aM,kBAxOJ,aAAA,CACA,iBAAA,CACA,UE0pBF,CFxpBE,yBACE,aAAA,CACA,UAAA,CACA,UAAA,CACA,OAAA,CACA,QAAA,CACA,6BE0pBJ,CFvpBE,wBACE,UAAA,CACA,aAAA,CACA,UEypBJ,CFtpBE,sBACE,aAAA,CACA,iBAAA,CACA,KAAA,CACA,MEwpBJ,CFvcM,kBAxOJ,aAAA,CACA,iBAAA,CACA,UEmrBF,CFjrBE,yBACE,aAAA,CACA,UAAA,CACA,UAAA,CACA,OAAA,CACA,QAAA,CACA,kBEmrBJ,CFhrBE,wBACE,UAAA,CACA,aAAA,CACA,UEkrBJ,CF/qBE,sBACE,aAAA,CACA,iBAAA,CACA,KAAA,CACA,MEirBJ","file":"index.css"}
1
+ {"version":3,"sources":["file:///src/styles/index.scss","file:///src/styles/_settings.scss","../src/styles/index.scss"],"names":[],"mappings":"AAoGE,UAxDA,mBCZc,CDad,oBCbc,CDcd,gBCba,CDcb,aE1CF,CFmGE,iDAEE,YEhGJ,CFmGE,kDAEE,yBEhGJ,CFmGE,iCAnFA,oBAoF4B,CAnF5B,0BAmFsC,CAhFpC,eEdJ,CFiGE,+BAvFA,sBAwF4B,CAvF5B,0BAuFwC,CApFtC,eERJ,CF+FE,+BA3FA,oBA4F4B,CA3F5B,wBA2FsC,CAtFpC,gBEJJ,CF6FE,6BA/FA,oBAgG4B,CA/F5B,0BA+FsC,CA5FpC,eEIJ,CF2FE,+CAnGA,oBAoG4B,CAnG5B,sBA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CFrmBE,wBACE,UAAA,CACA,aAAA,CACA,UEumBJ,CFpmBE,sBACE,aAAA,CACA,iBAAA,CACA,KAAA,CACA,MEsmBJ","file":"index.css"}
package/dist/index.js CHANGED
@@ -258,7 +258,7 @@ function extend() {
258
258
  *
259
259
  * For example:
260
260
  * @example
261
- * ```javascript
261
+ * ```ts
262
262
  * const data = [[1, 2], [3], []];
263
263
  * serialMap(data, cb);
264
264
  *
@@ -1608,7 +1608,7 @@ class SvgPath {
1608
1608
  * @return The current path object for easy call chaining.
1609
1609
  */ parse(path) {
1610
1610
  // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']]
1611
- const chunks = path.replace(/([A-Za-z])([0-9])/g, "$1 $2").replace(/([0-9])([A-Za-z])/g, "$1 $2").split(/[\s,]+/).reduce((result, pathElement)=>{
1611
+ const chunks = path.replace(/([A-Za-z])(-?[0-9])/g, "$1 $2").replace(/([0-9])([A-Za-z])/g, "$1 $2").split(/[\s,]+/).reduce((result, pathElement)=>{
1612
1612
  if (pathElement.match(/[A-Za-z]/)) {
1613
1613
  result.push([]);
1614
1614
  }
@@ -1740,6 +1740,7 @@ class SvgPath {
1740
1740
  * This interpolation function does not smooth the path and the result is only containing lines and no curves.
1741
1741
  *
1742
1742
  * @example
1743
+ * ```ts
1743
1744
  * const chart = new LineChart('.ct-chart', {
1744
1745
  * labels: [1, 2, 3, 4, 5],
1745
1746
  * series: [[1, 2, 8, 1, 7]]
@@ -1748,6 +1749,7 @@ class SvgPath {
1748
1749
  * fillHoles: false
1749
1750
  * })
1750
1751
  * });
1752
+ * ```
1751
1753
  */ function none(options) {
1752
1754
  const finalOptions = {
1753
1755
  fillHoles: false,
@@ -1783,6 +1785,7 @@ class SvgPath {
1783
1785
  * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and ∞, which controls the smoothing characteristics.
1784
1786
  *
1785
1787
  * @example
1788
+ * ```ts
1786
1789
  * const chart = new LineChart('.ct-chart', {
1787
1790
  * labels: [1, 2, 3, 4, 5],
1788
1791
  * series: [[1, 2, 8, 1, 7]]
@@ -1792,6 +1795,7 @@ class SvgPath {
1792
1795
  * fillHoles: false
1793
1796
  * })
1794
1797
  * });
1798
+ * ```
1795
1799
  *
1796
1800
  * @param options The options of the simple interpolation factory function.
1797
1801
  */ function simple(options) {
@@ -1835,7 +1839,8 @@ class SvgPath {
1835
1839
  * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`.
1836
1840
  *
1837
1841
  * @example
1838
- * var chart = new Chartist.Line('.ct-chart', {
1842
+ * ```ts
1843
+ * const chart = new Chartist.Line('.ct-chart', {
1839
1844
  * labels: [1, 2, 3, 4, 5],
1840
1845
  * series: [[1, 2, 8, 1, 7]]
1841
1846
  * }, {
@@ -1844,6 +1849,7 @@ class SvgPath {
1844
1849
  * fillHoles: false
1845
1850
  * })
1846
1851
  * });
1852
+ * ```
1847
1853
  */ function step(options) {
1848
1854
  const finalOptions = {
1849
1855
  postpone: true,
@@ -1894,6 +1900,7 @@ class SvgPath {
1894
1900
  * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity.
1895
1901
  *
1896
1902
  * @example
1903
+ * ```ts
1897
1904
  * const chart = new LineChart('.ct-chart', {
1898
1905
  * labels: [1, 2, 3, 4, 5],
1899
1906
  * series: [[1, 2, 8, 1, 7]]
@@ -1903,6 +1910,7 @@ class SvgPath {
1903
1910
  * fillHoles: false
1904
1911
  * })
1905
1912
  * });
1913
+ * ```
1906
1914
  *
1907
1915
  * @param options The options of the cardinal factory function.
1908
1916
  */ function cardinal(options) {
@@ -1986,6 +1994,7 @@ class SvgPath {
1986
1994
  * All smoothing functions within Chartist are factory functions that accept an options parameter.
1987
1995
  *
1988
1996
  * @example
1997
+ * ```ts
1989
1998
  * const chart = new LineChart('.ct-chart', {
1990
1999
  * labels: [1, 2, 3, 4, 5],
1991
2000
  * series: [[1, 2, 8, 1, 7]]
@@ -1994,6 +2003,7 @@ class SvgPath {
1994
2003
  * fillHoles: false
1995
2004
  * })
1996
2005
  * });
2006
+ * ```
1997
2007
  *
1998
2008
  * @param options The options of the monotoneCubic factory function.
1999
2009
  */ function monotoneCubic(options) {
@@ -2296,7 +2306,7 @@ class Axis {
2296
2306
  // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to
2297
2307
  // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will
2298
2308
  // still be visible inside of the chart padding.
2299
- labelLength = Math.max(this.axisLength - projectedValue, 30);
2309
+ labelLength = Math.max(this.axisLength - projectedValue, this.axisLength / this.ticks.length);
2300
2310
  }
2301
2311
  // Skip grid lines and labels where interpolated label values are falsey (except for 0)
2302
2312
  if (labelValue !== "" && isFalseyButZero(labelValue)) {
@@ -2729,6 +2739,7 @@ class LineChart extends BaseChart {
2729
2739
  * @return An object which exposes the API for the created chart
2730
2740
  *
2731
2741
  * @example
2742
+ * ```ts
2732
2743
  * // Create a simple line chart
2733
2744
  * const data = {
2734
2745
  * // A labels array that can contain any sort of values
@@ -2747,8 +2758,10 @@ class LineChart extends BaseChart {
2747
2758
  *
2748
2759
  * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options
2749
2760
  * new LineChart('.ct-chart', data, options);
2761
+ * ```
2750
2762
  *
2751
2763
  * @example
2764
+ * ```ts
2752
2765
  * // Use specific interpolation function with configuration from the Chartist.Interpolation module
2753
2766
  *
2754
2767
  * const chart = new LineChart('.ct-chart', {
@@ -2761,8 +2774,10 @@ class LineChart extends BaseChart {
2761
2774
  * tension: 0.2
2762
2775
  * })
2763
2776
  * });
2777
+ * ```
2764
2778
  *
2765
2779
  * @example
2780
+ * ```ts
2766
2781
  * // Create a line chart with responsive options
2767
2782
  *
2768
2783
  * const data = {
@@ -2797,7 +2812,7 @@ class LineChart extends BaseChart {
2797
2812
  * ];
2798
2813
  *
2799
2814
  * new LineChart('.ct-chart', data, null, responsiveOptions);
2800
- *
2815
+ * ```
2801
2816
  */ constructor(query, data, options, responsiveOptions){
2802
2817
  super(query, data, defaultOptions$2, extend({}, defaultOptions$2, options), responsiveOptions);
2803
2818
  this.data = data;
@@ -3156,6 +3171,7 @@ class BarChart extends BaseChart {
3156
3171
  * @return An object which exposes the API for the created chart
3157
3172
  *
3158
3173
  * @example
3174
+ * ```ts
3159
3175
  * // Create a simple bar chart
3160
3176
  * const data = {
3161
3177
  * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
@@ -3166,8 +3182,10 @@ class BarChart extends BaseChart {
3166
3182
  *
3167
3183
  * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object.
3168
3184
  * new BarChart('.ct-chart', data);
3185
+ * ```
3169
3186
  *
3170
3187
  * @example
3188
+ * ```ts
3171
3189
  * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10
3172
3190
  * new BarChart('.ct-chart', {
3173
3191
  * labels: [1, 2, 3, 4, 5, 6, 7],
@@ -3180,7 +3198,7 @@ class BarChart extends BaseChart {
3180
3198
  * low: -10,
3181
3199
  * high: 10
3182
3200
  * });
3183
- *
3201
+ * ```
3184
3202
  */ constructor(query, data, options, responsiveOptions){
3185
3203
  super(query, data, defaultOptions$1, extend({}, defaultOptions$1, options), responsiveOptions);
3186
3204
  this.data = data;
@@ -3431,20 +3449,25 @@ class PieChart extends BaseChart {
3431
3449
  * @param responsiveOptions Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]
3432
3450
  *
3433
3451
  * @example
3452
+ * ```ts
3434
3453
  * // Simple pie chart example with four series
3435
3454
  * new PieChart('.ct-chart', {
3436
3455
  * series: [10, 2, 4, 3]
3437
3456
  * });
3457
+ * ```
3438
3458
  *
3439
3459
  * @example
3460
+ * ```ts
3440
3461
  * // Drawing a donut chart
3441
3462
  * new PieChart('.ct-chart', {
3442
3463
  * series: [10, 2, 4, 3]
3443
3464
  * }, {
3444
3465
  * donut: true
3445
3466
  * });
3467
+ * ```
3446
3468
  *
3447
3469
  * @example
3470
+ * ```ts
3448
3471
  * // Using donut, startAngle and total to draw a gauge chart
3449
3472
  * new PieChart('.ct-chart', {
3450
3473
  * series: [20, 10, 30, 40]
@@ -3454,8 +3477,10 @@ class PieChart extends BaseChart {
3454
3477
  * startAngle: 270,
3455
3478
  * total: 200
3456
3479
  * });
3480
+ * ```
3457
3481
  *
3458
3482
  * @example
3483
+ * ```ts
3459
3484
  * // Drawing a pie chart with padding and labels that are outside the pie
3460
3485
  * new PieChart('.ct-chart', {
3461
3486
  * series: [20, 10, 30, 40]
@@ -3464,8 +3489,10 @@ class PieChart extends BaseChart {
3464
3489
  * labelOffset: 50,
3465
3490
  * labelDirection: 'explode'
3466
3491
  * });
3492
+ * ```
3467
3493
  *
3468
3494
  * @example
3495
+ * ```ts
3469
3496
  * // Overriding the class names for individual series as well as a name and meta data.
3470
3497
  * // The name will be written as ct:series-name attribute and the meta data will be serialized and written
3471
3498
  * // to a ct:meta attribute.
@@ -3487,6 +3514,7 @@ class PieChart extends BaseChart {
3487
3514
  * meta: 'Meta Three'
3488
3515
  * }]
3489
3516
  * });
3517
+ * ```
3490
3518
  */ constructor(query, data, options, responsiveOptions){
3491
3519
  super(query, data, defaultOptions, extend({}, defaultOptions, options), responsiveOptions);
3492
3520
  this.data = data;