What's new with RGraph at the moment?

Written by Richard, on 2nd June 2021

It's been a month and a bit since the last release so here's an update on what's been added to RGraph recently. There's not a huge amount - but perhaps that's a sign that RGraph is close to being perfect...? Yes, let's go with that.

  • There are now some pseudo-constants that you might be able to make use of. Obviously (older) JavaScript implementations don't have constants - so really they're just variables with an all-capitals naming convention. They are: RGraph.MONTHS_SHORT RGraph.MONTHS_LONG RGraph.DAYS_SHORT RGraph.DAYS_LONG RGraph.HOURS24 RGraph.HOURS12
  • Both the Line and Scatter charts can now add a trendline to your data if you wish. An example of the Line chart using a trendline is shown on the RGraph Facebook page[icon]. The options that control the trendline are as follows:
    • trendline
    • trendlineColors
    • trendlineLinewidth
    • trendlineMargin
    • trendlineDashed
    • trendlineDotted
    • trendlineDashArray
    They're pretty self-explanatory though the documentation describes each one and will be available with the release of version 6.01.
  • The Scatter chart now has an explode effect. With this effect, the marks on the chart explode outwards from a point on the chart (top-left, top-center, top-right, center-left, center-center, center-right, bottom-left, bottom-center or bottom-right).
  • The RScatter chart also now has an explode effect. Similar to the Scatter chart, with this effect the marks on the chart explode outwards from the center of the chart.

Also, whilst not strictly a change to RGraph, it's definitely worthy of mention that RGraph can now be found on GitHub[icon] (the source control website used by many, many developers).

So there you go - not a great deal happening with RGraph at the moment but development is most definitely still occurring, albeit at a somewhat slower pace. I've pegged the next release for July - though if you can't wait you could grab the source code for a particular library from the GitHub repository (link above). If you do then remember that you may also need to get the common core library as well as the chart library that you want.