Skip to content
Francois Vancoppenolle edited this page Jun 18, 2016 · 33 revisions

Previous Page          Next Page          Table of content

What's New in version 2 ?

This chapter describes the new possibilities 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.

See description in new wiki document Options Array/Function

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
  • pointDotStrokeColor
  • pointDotStrokeWidth
  • scaleSteps
  • scaleStartValue
  • scaleStepWidth
  • AnnotateDisplay
  • bezierCurve
  • bezierCurveTension
  • graphMin (a function can be associated, not an array)
  • 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
  • markerShape
  • pointDotStrokeColor
  • pointDotStrokeWidth

see Options Array/Function

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.

markers

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 creating 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 complete list of variables in Template Variables/Function

New options

Several new options have been implemented :

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.

Incompatibility with version 1

In first version, it was already possible to associate a function to some data/datasets elements (the color elements). In version 2, the parameters passed to the function have been completely reviewed. If you have such functions in your charts specifications, you will have to review your code.

See : Option Functions

Previous Page          Next Page          Top of Page

Clone this wiki locally