Giter Site home page Giter Site logo

Comments (6)

markrcote avatar markrcote commented on September 27, 2024

Good idea. I'm first working on replacing the CSS positioning with translations when transforms are available. I suppose I should have 3 options: canvas, HTML with CSS translations, and plain HTML.

from flot-axislabels.

graingert avatar graingert commented on September 27, 2024

I think graceful degradation is the way to go, and instead of html or css or canvas options, make the only option
yaxis: {
axisLabelAngle = horizontal
}

defaulting to vertical

from flot-axislabels.

markrcote avatar markrcote commented on September 27, 2024

I wonder, though, if it would be more pain than it's worth to have a mix of canvas and HTML, given that the default fonts are quite different, and I'm not sure how much value there is to having half the axes' labels selectable and the other half not. I want to keep the ability to force specific types of rendering too. Maybe I will implement both the simple horizontal/vertical option and the forcing of specific renderers.

Anyway for now I have pushed support for graceful fallback. All the latest major browsers default to CSS transforms, a few go back to canvas, and IE 8 goes back to the DXImageTransform for rotation and CSS positioning for translation ('cause Matrix is awful and I don't care to learn it). I haven't tried it, but I assume very old browsers would go back to HTML.

from flot-axislabels.

graingert avatar graingert commented on September 27, 2024

I like "Maybe I will implement both the simple horizontal/vertical option and the forcing of specific renderers." that method

from flot-axislabels.

markrcote avatar markrcote commented on September 27, 2024

Sorry haven't gotten back to this... not much time to concentrate on this plugin for a while. Feel free to submit a patch if you want. :)

from flot-axislabels.

markrcote avatar markrcote commented on September 27, 2024

With axis-label support going into flot core in 0.9, I don't think it's worthwhile to further complicate this plugin, so I'm going to close this.

from flot-axislabels.

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.