Results 1 to 2 of 2

Thread: Cross markers are not working

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    30

    Default Cross markers are not working

    Hi,

    I'm trying to use cross as marker type but I looks like it's not working.
    Here is my code :

    Code:
    Ext.setup({
        onReady: function() {
            var chart = new Ext.chart.Chart({
                store: new Ext.data.JsonStore({
                    fields: ['month', 'weight'],
                    data: [{
                        month: 'Janvier',
                        weight: 60
                    }, {
                        month: 'Fvrier',
                        weight: 70
                    }, {
                        month: 'Mars',
                        weight: 80
                    }, {
                        month: 'Avril',
                        weight: 90
                    }]
                }),
                axes: [{
                    type: 'Numeric',
                    position: 'left',
                    fields: ['weight']
                }, {
                    type: 'Category',
                    position: 'bottom',
                    fields: ['month']
                }],
                series: [{
                    type: 'line',
                    axis: 'left',
                    xField: 'month',
                    yField: 'weight',
                    markerConfig: {
                        type: 'cross',
                        size: 10,
                        radius: 10,
                        'stroke-width': 0,
                    }
                }]
            });
    
    
            new Ext.chart.Panel({
                fullscreen: true,
                chart: chart
            });
        }
    });
    Thanks

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    Ext.draw.Sprite says:

    Possible options are 'circle', 'path', 'rect', 'text', 'square', 'image'.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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