Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2010
    Posts
    191
    Vote Rating
    0
    rebeccapeltz is on a distinguished road

      0  

    Default Column and Area Chart color and legend problem

    Column and Area Chart color and legend problem


    The column and area chart are using the first color in the color array instead of the colors corresponding to their position in the series. This is reflected in both the fill color of the series and the color of the series in the legend. I stepped through the source and could see that for column and area, the index use to color the legend is always 0 for column and area charts.

    If I modified source for create legend to use the index of the series instead of 0, it messes up the colors of the legend for the stacked chart.
    I think the problem is farther up though because the series colors are incorrect too.

    from line 40877

    Code:
       chart.series.each(function(series, i) {
                if (series.showInLegend) {
                    Ext.each([].concat(series.yField), function(field, j) {  
                        item = Ext.create('Ext.chart.LegendItem', {
                            legend: this,
                            series: series,
                            surface: chart.surface,
                            yFieldIndex: i //j    IF I SUB I for J it corrects column legend but ruin stacked legend
                        });

    chart.series.each(function(series, i) {
    if (series.showInLegend) {
    Ext.each([].concat(series.yField), function(field, j) {
    item = Ext.create('Ext.chart.LegendItem', {
    legend: this,
    series: series,
    surface: chart.surface,
    yFieldIndex: j //j BECKY
    });

  2. #2
    Sencha User
    Join Date
    Apr 2010
    Posts
    1
    Vote Rating
    0
    elian83 is on a distinguished road

      0  

    Thumbs up [Partially solved] Column and Area Chart color and legend problem

    [Partially solved] Column and Area Chart color and legend problem


    I found a workaround to the legend color problem. I don't know if it is the best but it works.

    In ext-all.js you have to replace:
    fill:l.getLegendColor(i)

    To:
    fill:g("style")['fill']

    You also have to apply a fill style to your column:
    style: {
    fill: '#456d9f'
    }

    I hope this solve your problem.

    Elian.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar