question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

x axis labels in line plot as strings

See original GitHub issue

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!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jwilbercommented, Oct 28, 2019

@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!

1reaction
jwilbercommented, Jan 25, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found