Jump to content
JChartFX Community

JohnDeery

Members
  • Posts

    7
  • Joined

  • Last visited

JohnDeery's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm having an issue when trying to use Motifs in my charts. When adding in a call to the hook motif (and tested on others too), I'm seeing the following error: TypeError: c.toUpperCase is not a function (jchartfx.motif.hook.js:21:309) chart https://website/jchartfx/motifs/jchartfx.motif.hook.js:21 _Em https://website/js/jchartfx/jchartfx.system.js:4 _0_4 https://website/js/jchartfx/jchartfx.coreVector.js:710 e https://website/js/jchartfx/jchartfx.coreVector.js:691 I have tried to include jchartfx.motif.js and that doesn't fix it (in fact if I use that file and remove the actual motif, I still get the error), but according to the documentation from the main site it looks like I only need to include the motif.hook file.
  2. Thanks Juan, I was able to use the cfx.Chart.Hidden trick to make it work
  3. Sure. First, here is a working version: http://jsfiddle.net/L5fh0tsq/7/ Here is that same code with the second "Jane Doe" set to null, you'll see that you get points at date 1 and 3, but nothing at 2, which is the wanted and expected behavior: http://jsfiddle.net/66rhnp4x/2/ And finally the broken version: http://jsfiddle.net/qjLxv720/2/ In this case, I'm just getting the whole row rejected instead of the weird "Series1", but the result is still the same. Interestingly, if you change the first value in the first array (john smith) back to a number and then change the first "jane doe" to null, it works as I would expect, so it only seems upset if the very first value is a null
  4. Good day, I'm trying to set up a line chart where I'm showing a change in data over time by person, but I want to account for if there is no data registered (which would show a break in the line). I'm using PHP on the back-end, so I create my array where I initialize each person to NULL, then when I loop through I fill in for each person that does have data. The problem is, if the first person in the array that makes it back to the front-end has null data, then the chart won't build... I just get a default "Series1" label and a straight line across 0. If I have people that have some data, and then others with nulls it works fine, but I'm trying to figure out if there is a way around this, or if there is another value I can pass in to show "no data" so I get the breaks in the line without resorting to using a 0 value (which would be a good thing in this case, higher numbers are bad so 0 would be a false positive). Thanks for any help/ideas
  5. Thanks Juan, of course not the answer I would have liked but I think I can accomplish it the way you said pretty easily.
  6. Hello, I'm trying to set up some real-time filtering on my charts. In this case, I want to be able to hide a group of data (not a series) via checkbox. It's a bar chart with volume on the Y and months on the X, and if a user wants to hide certain months, I'd like to be able to target that x-axis "column" (not sure if that's the right terminology) and then hide it, but much like hiding a series, make it so I don't have to reload all the data to do so. Is this possible? Because I'm not seeing it in the documentation, but I might not know the correct terms. Thanks! Edit - I messed around with getData.setItem(), and doing so would allow me to remove the bars, but not the actual "column" from the chart, so if that helps explain better what I'm looking to do.
×
×
  • Create New...