Giter VIP home page Giter VIP logo

Comments (3)

HarisHashim avatar HarisHashim commented on May 27, 2024

Create a new sandbox!

from highcharts-vue.

Denyllon avatar Denyllon commented on May 27, 2024

Thank you for reporting the issue.
Unfortunately, it's not a bug at all and that's only the effect of incorrect way of implementation, so I'll try to explain you why it's happening.

First of all, you defined the data parameter inside of your series just like that:

series: [{
    data: [{y:10, drilldown:'first'}, {y:0, drilldown:'second'}, 8, 2, 6, 4, 5, 5],
    color: '#6fcd98'
}],

So, on first chart render, your drilldowns works fine, but let's try to deduce what happening if you're trying to change any number in input field.
There is the watch function assigned to points component data element (which is actually an array of numbers), and it assigns the newValue to the chartOptions.series[0].data, so basically at this level of process you can see what is happening with your initially set data. It has been overridden by new data value without drilldown field.
In order to fix that, first you need change the definition of points component field, so that it would be an array of objects, and then change the way of modeling the data, just like that:

points: [{y:10, drilldown: 'first'}, {y:0, drilldown: 'second'}, {y:8}, {y:2}, {y:6}, {y:4}, {y:5}, {y:5}],
        <form class="row points">
          <div v-for="index in 8" :key="index">
            <p>{{index}}</p>
            <input v-model.number="points[index-1].y" type="number" class="numberInput">
          </div>
        </form>

Here is working example: https://codesandbox.io/s/r0vw6mk80m

Hope it helps you.

Kind regards!

from highcharts-vue.

HarisHashim avatar HarisHashim commented on May 27, 2024

Thanks and you are right!

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.