[CLOSED] custom chart

  1. #1

    [CLOSED] custom chart

    Hi All,

    there is an example of a bar chart: https://examples2.ext.net/#/Chart/Column/Basic/

    Is there any chance to use letters instead of numeric as a value?

    I mean: we have one value for a month and it is a letter (a-z) so that YField needs to be letters.

    Could you provide an example if it is possible?

    Thank you.
    Last edited by Daniil; Sep 29, 2015 at 4:01 PM. Reason: [CLOSED]
  2. #2
    Solution (example):
    var al = new AxisLabel();
                    al.Renderer.Fn = @"function( storeItem, item ) {
                                    if ( storeItem == 7 )
                                        return 'A';
                                    else if ( storeItem == 6 )
                                        return 'B';
                                    else if ( storeItem == 5 )
                                        return 'C';
                                    else if ( storeItem == 4 )
                                        return 'D';
                                    else if ( storeItem == 3 )
                                        return 'E';
                                    else if ( storeItem == 2 )
                                        return 'N';
                                    else if ( storeItem == 1 )
                                        return 'M';
                                    else
                                        return ''
                                }";
    
    myNumericAxis.Label = al;

Similar Threads

  1. Replies: 2
    Last Post: Jul 23, 2014, 1:02 PM
  2. [CLOSED] How to draw a custom line (solid, dotted) on chart at specific position?
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 07, 2014, 6:30 AM
  3. Replies: 2
    Last Post: Jun 20, 2013, 10:32 AM
  4. [CLOSED] how can i set a custom title in a chart
    By JCarlosF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 17, 2013, 10:19 PM
  5. [CLOSED] Is there any way we can give custom legend label in chart
    By advBackOffice in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 05, 2012, 4:15 PM

Tags for this Thread

Posting Permissions