Line plotband

4 posts, 0 answers
  1. Chili
    Chili avatar
    46 posts
    Member since:
    Aug 2018

    Posted 29 Nov 2018 Link to this post

    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

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 04 Dec 2018 Link to this post

    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.
  3. Chili
    Chili avatar
    46 posts
    Member since:
    Aug 2018

    Posted 04 Dec 2018 in reply to Konstantin Dikov Link to this post

    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()????;
        })
  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 07 Dec 2018 Link to this post

    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.
Back to Top