Case-insensitivity coming to the RGraph configuration properties
Written by Richard Heyes, RGraph author, on 31st December 2023For a long time the RGraph property names have been case-sensitive. This, though, is about to change with the next version (6.16).
For a long time now the RGraph configuration properties have been case-sensitive - meaning that you had to use exactly the same letter-case as what was listed in the documentation. As of the next version though -
version 6.16 - you'll be able to use the property names in any letter-case that you choose. Here's an example of a Bar chart that uses the traditional style of configuration:
<script>
new RGraph.Bar({
id: 'cvs',
data: [4,8,6,3,5,4,2],
options: {
colors: ['red','blue','green','mauve','yellow','pink','brown'],
colorsSequential: true
}
}).draw();
</script>
And here's the same chart configuration using various different letter-cases (all of them are valid because letter-case is now disregarded entirely):
<script>
new RGraph.Bar({
id: 'cvs',
data: [4,8,6,3,5,4,2],
options: {
coLors: ['red','blue','green','mauve','yellow','pink','brown'],
colorsSEQUENTIAL: true
}
}).draw();
</script>
This change will be a part of the next release.