Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legends with axis offset #65

Open
kompier opened this issue Sep 14, 2019 · 0 comments
Open

Legends with axis offset #65

kompier opened this issue Sep 14, 2019 · 0 comments

Comments

@kompier
Copy link

kompier commented Sep 14, 2019

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'
})]
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant