Giter VIP home page Giter VIP logo

Comments (7)

Denyllon avatar Denyllon commented on May 27, 2024 3

Hi @dolphinfine ,

Thank you for the example.
However it looks like the iview sets the margin of its Col elements too late. The process of rendering looks like that:

  1. Columns (without setting margins),
  2. Charts (chart container width is set now)
  3. Margins (setting :gutter="8")

And that's the reason of why the chart width is not adjusted. To avoid this effect you can apply a little workaround by calling Chart.reflow() on chart.events.load. Here is the code:

chart: {
    type: "spline",
    events: {
       load() {
           setTimeout(this.reflow.bind(this)); 
       }
    }
},

Here is the example: https://codesandbox.io/s/lywp94585m

from highcharts-vue.

Denyllon avatar Denyllon commented on May 27, 2024

Thank you for your report.
Is it occurs also in native JS Highcharts version, or just while using this wrapper? Could you try to check it and let us know about the result?

from highcharts-vue.

dolphinfine avatar dolphinfine commented on May 27, 2024

I also met this problem,this is sample
https://codesandbox.io/s/w6w74n9vwk

from highcharts-vue.

mix3d avatar mix3d commented on May 27, 2024

@dolphinfine 's example is a perfect representation of the problem I was seeing.

from highcharts-vue.

dolphinfine avatar dolphinfine commented on May 27, 2024

@Denyllon thank you very much,but there are still some problems
https://codesandbox.io/s/p7jjz214xx

it seems iview`s problem...thanks all the same

from highcharts-vue.

Denyllon avatar Denyllon commented on May 27, 2024

hi @dolphinfine ,

Most likely the problem is related with native Highcharts, not the wrapper. Here is related topic: highcharts/highcharts#6338

Best regards!

from highcharts-vue.

dolphinfine avatar dolphinfine commented on May 27, 2024

@Denyllon
Thank you for your patience. You have helped me a lot.

from highcharts-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.