Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    11
    Vote Rating
    0
    andresantos is on a distinguished road

      0  

    Default Unanswered: Negative Values in Columns

    Unanswered: Negative Values in Columns


    I'm trying to create column charts with negative values, but did not find any config that really works. I tried the followed:

    Minimum set to 0: When the chart have negative and positive values, the negative value column did not show. When the chart have only negative values the columns display to "up" not dot "down", start at 0 and go up with negative values.

    Minimum not set:
    The negative values column display fine to down, but positive columns stay at same size. If i set for example: 1000, -10, 100, the value 1000 and 100 get same column size. If I set only positive values the same thing, columns at same size.

    Minimun set to 0 and adjustMinimumByMajorUnit set to true:
    The minimum always start with a negative value, dont matter if the values is only positive. When the negative value is too big, the Y axis dont adjust down, the column display for down, but not with the right size.

    There is any way to get this working, with another config or with change in source? Or something like check my values, get the lowest, change the "minimum" and redraw chart? Or any other workaround? Thanks for now!

    PS: I saw that version 2 maybe have this issued solved, I tried change the charts to 2 but it is not compatible with my touch 1.0 app.

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    11
    Vote Rating
    0
    andresantos is on a distinguished road

      0  

    Default


    A lot of views and no answear... If I buy paid version of the component you will solve or give an answear?

  3. #3
    Sencha User
    Join Date
    Jul 2009
    Posts
    15
    Answers
    1
    Vote Rating
    1
    shydreamz is on a distinguished road

      0  

    Default


    @andresantos a good workaround to this is you always check us data value n get a minimum and maximum value of the store's data, and
    if all the values are positive set the minimum config option of series to '0'
    if all the values are negative set the maximum config option of series to '0'.
    if the values are a mix of both the set the maximum as max of data n minimum as min of data.

    as far as i have looked into the sencha code the is no config option for now and also the adjustMaximumbyMajor/adjustMinimumByMajor does not do good with bar sizing.

    But this workaround gives a prefect solution

  4. #4
    Sencha User
    Join Date
    Sep 2011
    Posts
    11
    Vote Rating
    0
    andresantos is on a distinguished road

      0  

    Default


    Yes, but my data is dynamic, filtered from database. So.. each new query can have different minimum and maximum.
    The chart dont have a option to "change" the minimum and maximum settings after it was rendered first time, but looking into source code I can got this workaround:

    CHARTNAME.items.items[0].axes.items[0].minimum = -10000;

    After change the minimum, I reload the data. Will be great if the sencha team expose this to a property.

    Thanks

  5. #5
    Sencha User
    Join Date
    Jul 2011
    Location
    Holland
    Posts
    97
    Answers
    2
    Vote Rating
    0
    mrduck is an unknown quantity at this point

      0  

    Default


    I'm wondering if you where able to find a workarround in Sencha Charts 1.

    Is this problem solved in Touch 2?

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi