Add one more line on the y-axis of the chart bar

0
I wanted to add one more line on the y-axis, (0, 50, 100, 150 and 200), could someone help me with this?!
asked
1 answers
0

Hi Marcio,

 

If you are not already using it, I would recommend using the AnyChart widget. Your data woul look something as follows:


    {
        "name": "Dark Blue Values",
        "type": "bar",
        "x": [
            1,
            2,
            3,
            4
        ],
        "y": [
            18,
            8,
            5,
            0
        ]
    },
    {
        "name": "Medium Blue Values",
        "type": "bar",
        "x": [
            1,
            2,
            3,
            4
        ],
        "y": [
            1,
            6,
            3,
            0
        ]
    },
    {
        "name": "Light Blue Values",
        "type": "bar",
        "x": [
            1,
            2,
            3,
            4
        ],
        "y": [
            0,
            125,
            0,
            2
        ]
    },
    {
        "name": "My Line",
        "type": "line",
        "x": [
            1,
            2,
            3,
            4
        ],
        "y": [
            0,
            50,
            100,
            150,
            200
        ]
    }
]

You can also find the documentation here: Any Chart Widgets | Mendix Documentation

answered