-
Notifications
You must be signed in to change notification settings - Fork 140
032_version_2
Previous Page Next Page Table of content
This chapter describes the new things introduced with version 2 (December 2014).
Option value
The biggest changes refers to the way you can specify a value for an option, a data specification of a dataset specification. With the version 2, several options, data specifications and dataset specifications can now be defined as a array of values or as a function. This could be done for almost all options, but it has been implemented to only the ones where it would make a sense. I you have a need for an option where it is not yet implemented, it should be easy to make the change in the code. Just ask for it (open an issue for it and an explanation why you will use it) and it will be implemented.
With this new possibility, several open requests could be resolved (Issue 169, issue 187, issue 84, issue 198).
Options for which it has been implemented :
- all inGraphData options
- markerShape,
- scaleSteps, scaleStartValue, scaleStepWidth
- AnnotateDisplay
- bezierCurve, bezierCurveTension
- graphMin, graphMax (a function can be associated, not an array)
Data specification for which it is implemented :
- color
Datasets specifications for which it is implemented :
- StrokeColor
- fillColor
- makerShape
- pointDotStrokeColor
- pointDotStrokeWidth
TODO : describe the parameters for the functions;
New specifications
New specifications for Line datasets and for Radar datasets :you can now draw several markers on points : circles, diamonds, squares, plus, cross and triangles.
New variables for templates
With the first version of ChartNew.js, variables v1->v12/v13 could be used in templates for InGraphData and Annotates. With version 2, lot of others variables can be used. And adding a new variable would be easy. So if you have a request for an additional variable, just ask for it (open an issue for it and explain which variable you want) and it will be added.
see : TO BE WRITTEN
New options
Several new options have been implemented :
- Animation - animationByData
- Other options - zeroValue
- Chart Layout - bezierCurveTension
- markerShape (you can now draw other shapes on points)
- new responsive options responsiveMaxHeight ; responsiveMaxWidth ; responsiveMinHeight ; responsiveMinWidth
see : TO BE WRITTEN
Main fixed bugs
In version 2, lot of bugs were fixed. This is a list of the main fixed bugs. Lot of other not yet reported bugs were discovered during the tests phase and have been fixed.
- bezierCurve not displayed has it should - https://github.com/FVANCOP/ChartNew.js/issues/173
- chart where all values are missing are not drawn - https://github.com/FVANCOP/ChartNew.js/issues/179
- Y axis problem - https://github.com/FVANCOP/ChartNew.js/issues/200
- legend position problem - https://github.com/FVANCOP/ChartNew.js/issues/205
- logarithmic option with null or negative values - https://github.com/FVANCOP/ChartNew.js/issues/176