This is a migrated thread and some comments may be shown as answers.

Fever chart with Bubble chart

4 Answers 85 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Rajeev
Top achievements
Rank 1
Rajeev asked on 18 May 2016, 07:24 AM

Hi How to draw a fever chart in Kendo bubble chart in ASP.Net MVC . PFA. I would like to draw a background for the buble chart

 

 

I got a code for scatter but it is not working for Buble

 

http://docs.telerik.com/kendo-ui/controls/charts/how-to/draw-on-scatter-plots

4 Answers, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 20 May 2016, 05:20 AM
Hi Rajeev,

You can do the same type of drawing regardless of the series - just change its type to "bubble":

http://dojo.telerik.com/iReca

Of course, this can be done in the server-side wrapper like this:

http://demos.telerik.com/aspnet-mvc/bubble-charts/index


For more information about drawing different kinds of shapes, please refer to the following resources:

http://demos.telerik.com/kendo-ui/drawing/index

http://docs.telerik.com/kendo-ui/framework/drawing/basic-shapes

http://docs.telerik.com/kendo-ui/api/javascript/drawing/element (the whole section)

Regards,
Stamo Gochev
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
Rajeev
Top achievements
Rank 1
answered on 20 May 2016, 11:15 AM

 

Thank You Stamo, this is working. But new drawn path has preference over bubbles because of this tool tip is not showing. 

Is there any way to set something like z- index for bubbles and path drawn on surface ?

0
Rajeev
Top achievements
Rank 1
answered on 21 May 2016, 07:48 PM

Hi

Is there is any way to set Html attributes for the path element like ID , css Class

new kendo.drawing.Path().stroke({ opacity: 0.1 })
chart.surface.draw(path);     

<path d="M64 404.5 L 64 404.5 64 54.5 600.4 54.5Z" stroke="[object Object]" stroke-linejoin="miter" fill="url(#kdef1)"></path>

 

 

0
Veselin Tsvetanov
Telerik team
answered on 24 May 2016, 12:11 PM
Hi Rajeev,

You could set the z-index of the bubbles using jQuery:
var bubbles = $('circle');
bubbles.css('z-index', 1000);

Keep in mind that with the above all the <circle> elements on your page will get z-index of 1000.

Answering the other question, the drawing API does not offer the possibility to set ID or class attributes within the configuration of the path element.

Regards,
Veselin Tsvetanov
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
Tags
Chart
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Rajeev
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or