Giter Club home page Giter Club logo

flot-orderbars's People

Contributors

emmerich avatar pranjal-goswami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flot-orderbars's Issues

X-axis is zero-fixed

xaxis.min seems to be set to zero. This looks nasty when using time series. Can you detect the best min value for the xaxis?

You can see what I mean by feeding your example with this data:

data.push({
    data: [[1388530800000,102.406],[1391209200000,165.44],[1393628400000,223.588],[1396303200000,null],[1398895200000,null],[1401573600000,null],[1404165600000,null],[1406844000000,null],[1409522400000,null],[1412114400000,null],[1414796400000,null],[1417388400000,null]]
});

data.push({
    data: [[1388530800000,null],[1391209200000,null],[1393628400000,null],[1396303200000,null],[1398895200000,115.734],[1401573600000,609.038],[1404165600000,667.849],[1406844000000,559.338],[1409522400000,319.527],[1412114400000,221.966],[1414796400000,82.8976],[1417388400000,136.818]]
});

x value is changed

When the bars are ordered, the x coordinate appears changed. Can't we order bars without changing the x value?

Stacked Plus Ordered Is Not as Expected

I was searching for a way to get both stacked and ordered bar charts using Flot and I had hoped this was the answer. However, at least based on your example, it does not work the way that most stacked and ordered bar charts work.

See the question I posted here: http://stackoverflow.com/questions/27726417/multi-dimensional-stacked-bar-chart-with-zingchart about ZingCharts and the answer that was provided. The answer shows how it should look. As you can see, every bar chart in that example has the same series of data. There is a red, yellow, blue and green component to every bar, because you are examining the same series of data across both the xaxis dimension and the extra dimension.

In your example, each bar per X axis tick holds different data. Order 0/Stack 1, holds the data for series 1 and 2 and Order 1/Stack 2 holds the data for series 3 and 4.

Any idea how to get this to work the way that I was hoping?

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.