This question is locked. New answers and comments are not allowed.
Is there any example of combined chart? I am trying to implement Scattered chart with line chart with dateseries as x-axis. I have not found any example anywhere. Please let me know if it is possible and how (if possible).
3 Answers, 1 is accepted
0
Accepted
Hi Prashant,
Thank you for your interest in RadChartView for Android.
Our examples solution contains an example of combined chart - the example is called Multiple Axes and you can see its source code here. You just need to make the following consideration when adding more that one series to the chart - they should be of the same type - categorical or scatter - the first show data in categories, while the second show it based on its values. Here's an example to point out the difference: Have a look at the image of a chart with BarSeries here - the data is shown in Categories which represent the month names, now to the image of a chart with ScatterBubbleSeries - the data is shown depending on their numerical values.
I hope this information helps. Let us know if you need further assistance.
Regards,
Todor
Telerik
Thank you for your interest in RadChartView for Android.
Our examples solution contains an example of combined chart - the example is called Multiple Axes and you can see its source code here. You just need to make the following consideration when adding more that one series to the chart - they should be of the same type - categorical or scatter - the first show data in categories, while the second show it based on its values. Here's an example to point out the difference: Have a look at the image of a chart with BarSeries here - the data is shown in Categories which represent the month names, now to the image of a chart with ScatterBubbleSeries - the data is shown depending on their numerical values.
I hope this information helps. Let us know if you need further assistance.
Regards,
Todor
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Prashant
Top achievements
Rank 1
answered on 22 Dec 2015, 06:53 AM
Hi Todor,
Thanks for answering my query. I found the solution just after putting my query. I have one more query. Is it possible to use scatterPointSeries with datetime as X-axis. If not, is there any other way to implement the same? Sorry for the number of queries i am putting but i have no option other than this. I have to achieve something like the chart in attached file.
Thanks,
Prashant
0
Hi Prashant,
The scatter series can show data only when there are two numerical axes. When one of the axes is categorical (such as are DateTimeCategoricalAxis and DateTimeContinuousAxis) only categorical series can be used. However, we have a categorical BubbleSeries which I believe you can use for your scenario. As with other categorical series, you will need to set their value and category bindings, but you will also need to set their bubble size binding which will allow you to have bubble with different sizes depending on the values they represent. If you need bubbles with one size as it seems from your image, here's how:
And then set new instance of the binding to the series:
Let us know if you need further assistance.
Regards,
Todor
Telerik
The scatter series can show data only when there are two numerical axes. When one of the axes is categorical (such as are DateTimeCategoricalAxis and DateTimeContinuousAxis) only categorical series can be used. However, we have a categorical BubbleSeries which I believe you can use for your scenario. As with other categorical series, you will need to set their value and category bindings, but you will also need to set their bubble size binding which will allow you to have bubble with different sizes depending on the values they represent. If you need bubbles with one size as it seems from your image, here's how:
class MyConstantBinding extends DataPointBinding { @Override public Object getValue(Object o) throws IllegalArgumentException { return 600; }}And then set new instance of the binding to the series:
bubbleSeries.setBubbleSizeBinding(new MyConstantBinding());Let us know if you need further assistance.
Regards,
Todor
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items