A dark and graduated blue Bar chart
An example of a graduated dark blue Bar chart. It has no labels and no axes. The background grid horizontal lines are disabled.
A dark and graduated Bar chart. The colors are black at the bottom of the
bars graduating to blue towards the top. The background grid is customised
too with the horizontal grid-lines having been disabled. Nor are there any
labels. It uses the
responsive() function to enable it to
reduce in size on smaller screens.
Another thing to note here is the complete lack of any labels. You don't always need to have labels as the meaning may be clear without them - perhaps having a title elsewhere on the page. I wouldn't imagine that these use cases are very common though - with most cases requiring at least a scale in order to make sense.
When the screen is smaller not much happens - there's no text to reduce in size so the only
thing that's done is the CSS
float is removed and the
<script src="RGraph.svg.common.core.js"></script> <script src="RGraph.svg.bar.js"></script>Put this where you want the graphic to show up:
<div style="width: 600px; height: 300px" id="chart-container"></div>This is the code that generates the chart: