Code Monkey home page Code Monkey logo

Comments (1)

krzysu avatar krzysu commented on August 26, 2024

Hi seniDEac,
first of all, in the future, use some online JS editor to present example of your code, i.e. https://jsfiddle.net/

and I also don't fully understand your questions, but let's try:

  1. how to put this "tooltips" only in the "flag Series getRandomData3()"?

tooltip is defined per chart, not per series, but I think you can try to use onHover callback, check over which series your mouse is, and disable tooltip then (but I never tried it)

  1. how to always show this "tooltips"(getRandomData3())? (not only when the mouse is over, but all the time)?

there is no such a functionality, I think then it wouldn't be called tooltip. but feel free to add it and send me back your pull request

  1. how to get personalized "labels" with for exemple "on/off" button or "-/+" button or more "flag button "?

I'm not sure what do you mean by labels, but you can use content to specify what appears on tooltip, that can be also a function function(label, xval, yval, flotItem), check the documentation https://github.com/krzysu/flot.tooltip#plugin-options

also source code of this tooltip plugin is quite easy, so you can just dig inside, modify, debug, do whatever you want :)

have fun!
Kris

from flot.tooltip.

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.