Skip to content

v0.3.0 - Pie and Doughnut graphs

Compare
Choose a tag to compare
@regorxxx regorxxx released this 24 Aug 13:13
· 61 commits to main since this release

image

[0.3.0] - 2023-08-24

Added

  • 'pie' graph type. Colors are set per data point, not only per serie. i.e. A serie with 4 values, requires at least 4 colors. Not setting one will fallback to a random Chroma Palette (per serie). In case of using multiple series to showcase the same categories, it's recommended to set a specific Chroma scheme (like 'BuGn'), so all series use the same palette.
  • 'doughnut' graph type. Colors are set per data point, not only per serie. Read comments above about 'pie' graph type.
  • 'singleLabels' axis variable to not draw multiple times the X labels per serie (only applicable to 'pie' graph type). This is the default behavior.
  • 'dataAsync' variable to pass function returning a promise or a promise, resolving to data, to initialize a graph while calculating data without blocking the panel. Once the promise is resolved the chart is repaint with the data.
  • 'configuration' variable to pass some chart exotic configurations. Currently allows 'bLoadAsyncData' key, which is set to true by default. i.e. when passing asynchronous data, it will be refreshed once available. Setting it to false will not try to repaint the chart with the data automatically.
  • '05_statistics.js' and '06_statistics.js' new examples showing asynchronous loading.
  • '07_statistics.js' and '08_statistics.js' new examples showing pie and doughnut graphs.
  • Animation while loading asynchronous data.

Changed

  • Minor performance improvement (usually on subsequent calls) caching all TitleFormat expressions.
  • Improvements to vertical text using image rotation instead of chars flipped. Old behavior may be used setting 'configuration.bAltVerticalText' to true.
  • Minor fix to vertical text.

Removed

Fixed

  • Crash when no data is available painting ticks on Y axis.
  • Crash when no data is available.