Skip to content

Legends with axis offset #65

@kompier

Description

@kompier

If I add a a axis offset, the legends did not apear.
This code shows the legends:

var chart = new Chartist.Bar('#chart12', {
labels: ['Combinados','Bebidas','Entradas','Diversos','Rolls/teppan','Sushi/sashimi','Outros'],
series: [
{"name": "Fechamento", "data": [41, 19, 14, 7, 6, 12, 0]},
{"name": "Últimos 30", "data": [30, 23, 17, 9, 8, 8, 4]},
]
}, {
seriesBarDistance: 10,
reverseData: true,
horizontalBars: true,
plugins: [
Chartist.plugins.legend({
position: 'bottom'
})]
});

If I add a offset for the axis, It does not show:

var chart = new Chartist.Bar('#chart12', {
labels: ['Combinados','Bebidas','Entradas','Diversos','Rolls/teppan','Sushi/sashimi','Outros'],
series: [
{"name": "Fechamento", "data": [41, 19, 14, 7, 6, 12, 0]},
{"name": "Últimos 30", "data": [30, 23, 17, 9, 8, 8, 4]},
]
}, {
seriesBarDistance: 10,
reverseData: true,
horizontalBars: true,
axisY: {
offset: 90
}
plugins: [
Chartist.plugins.legend({
position: 'bottom'
})]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions