Results 1 to 2 of 2

Thread: Line chart with left align steps

  1. #1
    Sencha User
    Join Date
    Jan 2017
    Posts
    3
    Vote Rating
    0
      0  

    Default Line chart with left align steps

    Is it possible to configure line chart with left align steps? In 6.5 I can configure the series with:
    Code:
    curve: {
        type: 'step-after'
    }
    but this gives me a 'right' align chart (horizontal line -> vertical line). How do I create an 'inverse' chart (vertical line -> horizontal line)?

    Fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2kap

    Thanks.

  2. #2
    Sencha User
    Join Date
    Jan 2017
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Never mind. I've got what I needed by overriding 'Ext.chart.series.sprite.Line'. It's not an elegant solution but it works for now until it's supported by the framework.
    Fiddle is updated with changes in line 15 && 135 to support curve type 'step-before'.

Similar Threads

  1. Replies: 4
    Last Post: 14 Jun 2016, 8:47 PM
  2. Sencha Touch 2.1.0 RC1 - Align left Bar chart
    By Grolubao in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 8 Oct 2012, 6:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •