GithubHelp home page GithubHelp logo

Comments (4)

karolkolodziej avatar karolkolodziej commented on September 27, 2024

Hi @MarcelloPoletti!

Thank you for sharing this idea!

Right now with a bit of code, you can create such a thing- see the y = f(x) demo.

But if I understand you correctly your idea is to have instead of the data in the series something like this:

  series: [{
    type: 'function',
    equation: 'x^2 + 5'
    range: [-10, 10]
  }]

If you have any other idea how it might look or work please feel free to share that!

from highcharts.

MarcelloPoletti avatar MarcelloPoletti commented on September 27, 2024

Hi karolkolodziej,

Yes, a function type series it's probably the best way. And it can have some params, in example:

series: [{
    type: 'function',
    equation: function(x){ return x^2 + 5},
    range /*optional*/: [-10, 10], //or [-10, null] or [null, 10]...
    density /*optional*/: 10, //or nothing, draw a point every 10 pixel 
  }]

marc.

from highcharts.

karolkolodziej avatar karolkolodziej commented on September 27, 2024

Thank you for clarifying! We are going to discuss it internally and we will keep you posted!

from highcharts.

MarcelloPoletti avatar MarcelloPoletti commented on September 27, 2024

Another way to think the problem, perhaps more powerfull, is work on data instead of series.
Suppose "data" depends on xAxys range now visible for a generic series:

series: [{
    type: anytype!!
    data:{
	function: function(o){
		//o contains some information about newminx, newmax, oldminx, oldmax, olddata
		//Here we can produce new dataset in any possible way, using any possibile optimization strategy
	}
    }
}]

marc.

from highcharts.

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.