Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Issue with tickInterval: 'auto' on resize #16

Open
klivak opened this issue Jun 14, 2020 · 0 comments
Open

Issue with tickInterval: 'auto' on resize #16

klivak opened this issue Jun 14, 2020 · 0 comments

Comments

@klivak
Copy link

klivak commented Jun 14, 2020

Hi, when i use:

chartOptions: {
  chart: {
    width: 900,
    height: 200,
    format: '1,000'
  },
  xAxis: {
    type: 'datetime',
    dateFormat: 'MMM DD',
    tickInterval: 'auto'
  },
}

and add a resize function

let chartWidth = this.$refs.chart.clientWidth;
this.$refs.tuiChart.invoke('resize', {
        width: chartWidth,
        height: 200,
});

the x axis definitions is empty -> https://prnt.sc/szljmh
but when I comment tickInterval: 'auto' it will work fine -> https://prnt.sc/szll17
It's a bug?

My versions:
"@toast-ui/vue-chart": "^1.1.2",
"vue": "^2.5.13",

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

No branches or pull requests

1 participant