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

Bar chart with target line

3 Answers 938 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chaitra
Top achievements
Rank 1
Chaitra asked on 12 Feb 2019, 09:19 AM

Hi,

How we can add a target line to the bar chart. I have seen example we can add target line to column chart. Same way how we can add to the bar chart.

Below is the link with column chart and target

https://next.plnkr.co/edit/6RQAu7t9WZm8iCBl?preview

How I can convert this to bar chart with target.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 14 Feb 2019, 08:12 AM
Hi Chaitra,

We recommend using the Bullet Charts that have the desired capabilities (and further built-in enhancements) for displaying bar and column graphs with target lines out-of-the-box:

https://www.telerik.com/kendo-angular-ui/components/charts/series-types/bullet/

https://www.telerik.com/kendo-angular-ui/components/charts/api/SeriesItemComponent/#toc-currentfield

https://www.telerik.com/kendo-angular-ui/components/charts/api/SeriesItemComponent/#toc-target

https://www.telerik.com/kendo-angular-ui/components/charts/api/BulletTarget/

That said, you can "rotate" the custom visuals used in the provided Plunkr example to render the custom visuals representing the target lines by switching the x and y values and the arguments, passed to the drawing functions, e.g.:

https://next.plnkr.co/edit/QVQN3i09bVbEvKsx

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Chaitra
Top achievements
Rank 1
answered on 15 Feb 2019, 09:05 AM

Hi Dimiter Topalov,

I have gone through the bullet chart graph. But how can we achive the same multiple bar stack chart with bullet chart. 

If any plunker you are able to provide for the same it will be helpful.

As per my understanding I have tried for one chart , but how can we enable as multiline chart

https://stackblitz.com/edit/angular-wg8r1q-xrfrql

Thanks



0
Accepted
Dimiter Topalov
Telerik team
answered on 19 Feb 2019, 07:57 AM
Hi Chaitra,

Indeed, using the outlined approach with the combined capabilities of the stacked bar and bullet charts is unfortunately not supported. For such scenarios, you will need to utilize the custom visual approach, as previously discussed - render the regular stack bar chart, and a custom visual for each series.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Chaitra
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Chaitra
Top achievements
Rank 1
Share this question
or