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

Cartesian Chart - how to select an item with the 0 value?

1 Answer 22 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Rostislaw
Top achievements
Rank 1
Rostislaw asked on 28 Jan 2016, 09:30 AM

Hi *,

I try to use the selection changed Event for the cartesian Chart to notify another view.

It works fine but I recognized that there is no possibility to select an item with the null value (see attached Picture).

 

Any ideas?

Thx

Rostislaw

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 29 Jan 2016, 12:19 PM
Hi Rostislaw,

One way to go here is to have a zero-bar indication. This is when the value of the bar is zero, the bar to have a specific look, for example, it can be 2 pixels tall, have a yellow background and be slightly transparent. This way, the user will be able to see and click the bar. This you can do via the DefaultVisualStyleSelector.

Another option is to allow the users to click on the bar labels. This way a user will not be able to click the bar itself, but will be able to click the corresponding label. You can get this dove via the label definitions of the series, its Template property and an attached property that will actually toggle the selection.

I have attached a small project demonstrating both of these approaches. If you have a question about how to do something else you have in mind, feel free to ask us again.

Regards,
Petar Marchev
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
ChartView
Asked by
Rostislaw
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or