x axis labels in line plot as strings
See original GitHub issueHi,
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!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Matplotlib Examples: Plots with String Axis Labels - queirozf.com
Examples on how to create plots where one of the axis is not a list of integers/floats but a list of strings.
Read more >matplotlib strings as labels on x axis - Stack Overflow
I am building a small tool for data analysis and I have come to the point, where I have to plot ...
Read more >Plotting with string as the x axis value. - MATLAB Answers
i'm trying to generate a graph of country by density but would like to have the country name on the x axis rather...
Read more >Plot figure which x axis value is strings not numbers
Hi all, I want to plot a figure like above. xlist = [94,88,90,20] and ylist = ['a','b','c','d',] I read bokeh doc but not...
Read more >Connecting labels from X axis (scatter plot) to a String Variable
Connecting labels from X axis (scatter plot) to a String Variable ... However, I'm having problems changing my variable X from from ID...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@slevin886 just so ya know: I found/fixed the issue! Going to add a few other fixes then release as v 1.0.5 sometime tonight/this week!
@alexander-heimbuch hey, yeah I’ve been waiting to post a release, but’s it’s been long enough that I’ll push something out this week. Will ping when done