Currently I'm setting particular colors for my jqPlot graph using seriesColors: [ "#55A9D3", "#D4EDE2", "#EA2E49"], however I would like jqPlot to simply randomize colors for me if the graph ends up having more than just 3 results (the graph is being generated on dynamic data). Is there a way to do this? Thank so much!
Try this:
seriesColors: $.merge([ "#55A9D3", "#D4EDE2", "#EA2E49"], $.jqplot.config.defaultColors)
Related
I need to get the opened indicators values (a bunch of this) from a current chart of MetaTrader 4 (by using mql4), and export this values on python (by using ZeroMQ library), in order to create a dictionary of this values and using it for other purpose. I just do that for candlestick data, but that's quite simple. I know there's ChartIndicatorTotal to know number of total indicators on the chart, and ChartIndicatorName to know the names of the indicators on the chart, but I don't know how I should use this functions in order to get the values I want.
I'm using chart helper on an mvc project but the line chart looks weird or doesn't looks like i want. I've been searching about this subject and the only thing I can find its the charttheme but only one example with series. I'm including this, which is the only example i found about series on chart theme.
Series Name="Default" Template="All" BorderWidth="3" IsValueShownAsLabel="True"
I want to put this dot on the values instead of the numbers. I think the solution must be on "series" because the chart helper doesn't has many options but I can't find what other properties this series has. I have 2 images to upload but I can't because I need more reputation, I will try to update this if I get the reputation needed.
I'm currently looking to implement Highcharts JS into my application.i'm using timestamp for plotting graph data
However, I have gaps in my graph but in data there is no null values, and i wish to connect the gaps.
Using the highcharts demo, I have edited the data to demonstrate what currently happens by default:
Please check this
[jsfiddle][1]
[1]: http://jsfiddle.net/r9TzZ/21/check fiddle
I found the solution for this
it's simply working fine by remove the gapSize: 5 on my code
fiddle
Is it possible to have different colors for different selected columns in highcharts?
Here's a sketch for what I'm trying to do: http://jsfiddle.net/jZmYW/4/
When selecting a point (column) it should get a specific color. I try to achieve that with setting new data for the selected point.
Visually it leads to the expected result but comes with a JS-error: "Uncaught TypeError: Property 'setState' of object # is not a function".
I also tried to apply the functionality to the series (with setting new data there). That gives a quite similar result where the JS-error is slightly different: "Uncaught TypeError: Property 'firePointEvent' of object # is not a function".
Any ideas?
The problem can be solved by defining a specific select state for each series, see http://jsfiddle.net/jZmYW/5/
Thanks to the highcharts support team for helping here.
I am able to create a time-series "hash" using the statistics gem:
=> #<OrderedHash {"2010-10-23"=>2, "2010-09-22"=>3, "2010-09-11"=>1, "2010-08-27"=>1, "2010-10-15"=>
1, "2010-09-15"=>1, "2010-08-08"=>2, "2010-10-17"=>14, "2010-10-06"=>2, "2010-09-28"=>1, "2010-10-19
"=>1, "2010-09-20"=>1}>
I want to create a simple graph with this data -- I am trying to use the Seer gem but am confused -- it looks like rather than passing in a series, you pass in a method and it runs it live based on the data.
Is there a way I can take data starting with a hash and display it?
I have used highcharts. It is a javascript library but it's really easy to use. Use ruby to get your statistics and then display them with this library.
It does not matter if the data is in a hash or an array. It depends what kinda graph you want. Looking at your data you could just create a line graph. the x-axis would be the time and the y-axis would be the amount.
Then you can just loop over the hash and for each value have the key as the y-value and the value as the x-value.
You will have to create a different hash for each type of data you wanted to store.
Google Charts (http://code.google.com/apis/chart/) is another option, although I have to say that HighCharts looks pretty impressive.