Show all posts by user
Use this forum if you have issues or you want to discuss about the JS Charts.
Re: Line Graph - Clickable Points - 14 years ago
If you don't need to know which line was clicked, you can simply capture click events inside your chart container. jQuery example: $('#chartContainer div').live('click', function(e) { if ($(this).attr('id').substr(0, 8) != 'trigger_') { return; } // Do something }); .live() will monitor all DIVs, even if you re-drew the chart with new data. Unfortunately, this isn't realby dimitryb - Discussions & Support
Re: Line chart fails when all Y-values are the same - 14 years ago
Thank you so much. Wonderful support!by dimitryb - Discussions & Support
Re: Line chart fails when all Y-values are the same - 14 years ago
As a follow up, can I set a min and max of the Y-axis? As an example, I'm trying to display a graph of ad impressions. So if all ad impressions over last 30 days are 0, I get negative values on the chart. Obviously, this dataset can never be below 0, so it's misleading to the end-user to see negative values on the y-axis. Also, as I understand, there is no way currently to display negativeby dimitryb - Discussions & Support
Re: Line chart fails when all Y-values are the same - 14 years ago
Sabin - Thanks for getting back to me. I've narrowed it down to one method that causes the error: var myChart = new JSChart('element', 'line'); myChart.setDataArray([[1,0],[2,0],[3,0]]); myChart.setAxisValuesNumberY(10); // This is the bad guy. Without this method, the line renders fine. myChart.draw(); Any ideas? I'd like to have a consistent graph with 10 y-axis lines at all times, soby dimitryb - Discussions & Support
Line chart fails when all Y-values are the same - 14 years ago
Example usage: chart.setDataArray([[1,0],[2,0],[3,0]]); Firebug spits out an error: An invalid or illegal string was specified" code: "12 It's not because all Y-values are zeroes. I get the same error for any other value. Thoughts? We're steps away from ordering a site license for ourselves and contacting you for an even bigger license for a client.by dimitryb - Discussions & Support