jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • frankkluyt
    Member

    When I inspect the pie chart it gives this property:

    fill=”url(#grdff0000r0_0_1)”

    The #ff0000 is from the color scheme, but it comes out like this.


    frankkluyt
    Member

    Hi Dimitar,

    I can’t get the custom color scheme to work with the following code:

    // Pie chart 2
    $.jqx._jqxChart.prototype.colorSchemes.push({ name: ‘myScheme’, colors: [‘#ffff00’, ‘#ff0000’, ‘#ccff00’, ‘#00ffff’, ‘#aaaaaa’] });
    var settings = {
    enableAnimations: true,
    showLegend: false,
    source: initializeTaken,
    colorScheme: ‘myScheme’,
    seriesGroups:
    [
    {
    type: ‘pie’,
    showLabels: false,
    series:
    [
    {
    color: “#33769E”,
    dataField: ‘percent’,
    displayText: ‘Browser’,
    labelRadius: 60,
    initialAngle: 90,
    radius: 116,
    centerOffset: 0,
    formatSettings: { sufix: ‘%’, decimalPlaces: 1 }
    }
    ]
    }
    ]
    };

Viewing 2 posts - 1 through 2 (of 2 total)