x axis labels in line plot as strings
Author: slevin886Created Oct 22, 2019Updated May 8, 2020
Hi,
I am trying to plot a line graph where my xaxis are times (as strings i.e. '7am'), I have the following code:
new roughViz.Line( { element: '#streaming', data: './static/availability.csv', title: 'Line Chart', x: 'time', y1: '# games', width: window.innerWidth / 2, } );
It will render if I remove 'x', but otherwise I can't get it to use strings as the values- possibly because it needs continuous values? If so, is there a workaround to replace the visible tick labels?
Thanks!
Source: jwilber/roughViz