Issue #50 resolved

Ordered date being reordered

Anonymous created an issue

Chris

Great work with the jqplot.

I have an issue, where the data is being reorded by the x axis values.

The data I am plotting is ordered by the y axis values and I pass it to jqplot as such.

Ploting just the points is fine, however the lines don't come out right.

The line code: " sortData(this.series); " is the problem in "this.init = function...".

Its easy for me to remove the line of code, but it may be better served as an option parameter to sort by x, or y values or no sorting, with no sorting being the default.

I'm thinking many people may be passing values from a database jqplot that are already sorted.

Of course this may have implications for some other aspects of the library such as trend lines.

Berwyn

Comments (3)

  1. Chris Leonello repo owner

    Yes, a lot of things can break if the data isn't increasing in x (or y for a horizontally oriented bar chart).

    What type of plot are you making? What does your data look like? Do you have an example? Just curious what your plot looks like.

    In any case, I added an option to turn off sorting, It'll be in the next release.

  2. Log in to comment