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

Line plotband

3 Answers 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chili
Top achievements
Rank 1
Chili asked on 29 Nov 2018, 07:20 AM

Hello,

I want for my bar to have a Y-axis line. Just the same as this Dojo Example

I have removed the first plotband so only the line will be visible. But then I see this:

from: 30000,
to: 30500,

Is there a way to just set it at 30000 and not to 35000? 

Kind regards

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 04 Dec 2018, 06:43 AM
Hello Chili,

Using the "from/to" approach is a valid solution for rendering a threshold line. Another option would be to render the threshold line manually as shown in the following HowTo example:
Hope this helps.


Regards,
Konstantin Dikov
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
Chili
Top achievements
Rank 1
answered on 04 Dec 2018, 10:18 AM

I've seen the demo you provided. But it is kinda useless since I want a .net core example (maybe a thing for in the future to also add core examples).

How can I convert this to line:

.PlotBands(bands =>
    {
        bands.Add().From(0).To(0.2).Color("#26A65B").Opacity(1);
    })
 
//Test
.Line(lines=>
    {
        Lines.Add()????;
    })
0
Konstantin Dikov
Telerik team
answered on 07 Dec 2018, 07:32 AM
Hello Chili,

The logic from the HowTo example is applicable for the Chart for ASP.NET Core as well, because it is a client-side logic executed within the "Render" event of the helper:
.Events(e=>e.Render("onRender"))
 
<script>
  function onRender(e){
     ...
  }


Best Regards,
Konstantin Dikov
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
Chili
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Chili
Top achievements
Rank 1
Share this question
or