roughViz icon indicating copy to clipboard operation
roughViz copied to clipboard

x axis labels in line plot as strings

Open slevin886 opened this issue 6 years ago • 5 comments
trafficstars

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!

slevin886 avatar Oct 22 '19 19:10 slevin886

@slevin886 thanks - I've identified the issue and will try and fix this on the airplane tonight!

jwilber avatar Oct 22 '19 21:10 jwilber

Thanks, Jared! Great work on the project!

On Tue, Oct 22, 2019 at 5:58 PM Jared Wilber [email protected] wrote:

@slevin886 https://github.com/slevin886 thanks - I've identified the issue and will try and fix this on the airplane tonight!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwilber/roughViz/issues/10?email_source=notifications&email_token=ACMY5R7DKTHIA6ITOAJYOY3QP5ZR5A5CNFSM4JDUFTNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7LGHY#issuecomment-545174303, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMY5R23AOLMT4LGWYMBISTQP5ZR5ANCNFSM4JDUFTNA .

slevin886 avatar Oct 23 '19 12:10 slevin886

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

jwilber avatar Oct 28 '19 03:10 jwilber

@jwilber Any progress on this topic?

alexander-heimbuch avatar Jan 24 '20 18:01 alexander-heimbuch

@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

jwilber avatar Jan 25 '20 07:01 jwilber