Plans for version 5.1 of RGraph
Written by Richard Heyes, RGraph author, on 29th July 2019For the next version of RGraph - version 5.1 - I think I'm going to remove a lot of redundant legacy code. Some of the code in RGraph has been there for over a decade in order to preserve backwards compatibility.
But because it's so old and the current configuration style has been in place for some time it's no longer necessary and is only taking up space (like myself some would say...)!
So the current json
configuration is the only one that will be available but it's the best
so there's no great loss.
Here's a short list of what's going to be taken out. It doesn't look like a lot but there will be a lot of testing that will be necessary and a lot of documentation pages will need updating because behind the scenes they use an older configuration style.
- Older configuration methods will be removed so only the current
JSON
style configuration will work. - The unused
obj.propertyNameAliases
will be removed. - The function
RGraph.OldBrowserCompat
will be removed. - The property list in each library will be updated to be
json
, like thesvg
libraries. - The
set
methods will be updated to only allow thejson
and new property name formats (eg.set({backgroundGrid: false})
or.set('backgroundGrid', false)
). - The
set
method will have any redundant BC code removed. - The
get
method will also have redundant BC code removed.
This will be the main focus of version 5.1 - possibly the only thing that's in the release (though a few other minor things may sneak in). If you have any other suggestions then let me know what they are using the support forum.