Hi Team,
Me and my team are considering to use infragistics jquery component especially the html5 chart, and it seems that it is still in ctp version. Any ideas when is the RTM released?
I have another question which is how to plot a scatter and line series within one chart. From your example, I noticed that for scatter you need to specify x and y value which is correct, but why for the line series, you only need to specify valuememberPath instead of x and y like scatter. Attached is just an example of what I am trying to achieve. Could you please show me just a simple example on how to do it? (Not neccessary to look like the one in the pic)
Cheers
Hello ifvantedi,
We are pleased that you consider our jQuery library and the charts in particular. The library will be RTM in the next release which is 2012 volume 1.
As to scatter and line series, the explanation is that in the current implementation scatter and line series are mapped to different x-axes. Scatter is mapped to a ‘numericX’ x-axis and line is mapped to ‘categoryX’ x-axis. The ‘categoryX’ axis for line maps itself the x-component and the line series maps the y-component of the coordinates. That means you need to specify two x-axes in order to accommodate scatter and line series in one chart.
By looking at your example I assumed you have different data sources for the scatter and line series and I produced the example below (sorry, it really doesn’t look like yours). See how I attached the lineData array to the lineX axis and the lineSeries to define and plot the line series, and also I attached the scatterData to the scatterSeries to define and plot the scatter series. The attached image shows how this code is rendered on screen.
If you need further assistance do not hesitate to ask.
Hi, What you are wanting is to plot a scatter series and a scatterLine series together. scatterLine is not included in the CTP, It will either be in the RTM or some future version of the chart.
Plotting a category line series next to a scatter series will probably not give you the results you want as a category series treats all points as being equidistant from each other, meanwhile a scatter series will plot points at the exact x coordinate provided.
For a category series the x values are really just labels. This is, unless, you are using the categoryDateTimeXAxis (which will be in the RTM) which can place each point at the precise datetime.
What it seems you require is scatterLine series, however, which is not in the CTP of the product, currently.
-Graham
Hi Lazar Videnov,
Thanks for your reply. From your example, I can tell that this is what i am trying to achieve.
I tried to copy paste your code but unfortunately it didn't work, did you use the ctp version to generate this example? You can see from the screenshot below that the line is not generated, only the scatter one.
If you need the code, i can certainly provide one, it's really a plain html file. Include js script, include css file, add your code and 2 div for chart and legend. Or if possible, can you send me your test file?
In addition, I noticed that the line plot that you generated is incorrect. The scatter one is correct though. The data points do not match the plot, for example in the var lineData states that: arg: 0.23, val: 0.33 and arg: 0.38, val:0.55. Based on your screenshot, what is actually being plotted is arg:0.23, val: 0.7 and arg: 0.38, val: 1.1
Looking forward to hear your feedback