Re: Re: D3.js
By: Tracker1 to Sprite on Sun Dec 27 2020 01:05:54
Is anybody here familiar with or even good at the D3.js graphing library for JavaScript?
Familiar with it, not necessarily good. What are you trying to do?
Oh hallelujah. I thought it was a long shot that anybody here would be familiar, but I am very glad you responded. Hopefully you've come across
the issue that I've had before here, or at least know of some better documentation sites than what I've found sofar.
I have an application that's monitoring blood plasma levels of a substance, and I just recently switched its graphing from showing the daily plasma concentration to an hourly concentration (over a 30 day period). Thus, my formerly 'chunky' graph now looks like the following:
https://imgur.com/a/H818rwO . Unfortunately, the x-axis is now completely obliterated with the 'ticks'.
I can't remember everything that I've tried to get the x-axis to only show ticks/labels on every 24th one (ie one for each of the 30 days graphed), but I know .ticks() isn't doing any good, nor are any of the other related
.tick*() methods that I've attempted to use to this point. I've tried 'manually' setting the ticks that I don't want to show to 'null', an empty string, and the like, but when I do that it goes back to the 'chunky' graph, only showing every bar that still has a 'proper' x-axis tick label.
I've seen examples like the following, so I know that this can be done:
https://www.tutorialspoint.com/d3js/d3js_graphs.htm , I just can't figure out how on Earth to do it. :P Oh I tried .tickValues() specified manually, as well, and that didn't work, either. :(
I'd be very grateful for anything that you might be able to offer on
this issue; I've been banging my head against the cinderblocks for awhile on this now. And hey, even if you can't help, I appreciate the response. :)
Take care!
---
■ Synchronet ■ Tinfoil Tetrahedron BBS - skulking seedily against the Brave New World