Skip to content

Custom settings #2

@cortpcl

Description

@cortpcl

Hi again,

So i could edit the chart.settings in chartTool.js.

I tried adjusting the colors and some other settings. But nothing happens neither frontend when viewing the document or when editing the doc.

Any thoughts?

And very nice work,btw.

var colors = [
    { color: '#c58036', visibleInLegend: false },
    { color: '#66663e', visibleInLegend: false },
    { color: '#666666', visibleInLegend: false },
    { color: '#a39262', visibleInLegend: false },
    { color: '#afae9a', visibleInLegend: false },
    { color: '#dbdbd3', visibleInLegend: false }

];

chart.settings = {
    data: [
            ["", "Sales", "Expenses"],
            ["2004", 1000, 400],
            ["2005", 1170, 460],
            ["2006", 660, 1120],
            ["2007", 1030, 540]
        ],
    options: {
        title: "Chart Titlefvv",
        legend: {
             position : "none"
        },
        hAxis: {
            title: "X-axis title",
             baselineColor: "#3a3b3a"
         },
         vAxis: {
             baselineColor: "#3a3b3a",
             gridlines: { color: '#3a3b3a', count: 6 },
             maxValue: 100,
             minValue: 0, 
             logScale: false
        },
        animation: {
            duration: 1000,
            easing: "out"
        },
        series: colors,
        slices: colors,
        colors: colors,
        isStacked: true

    },
    chartType: "Column"
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions