Area chart with scrolling when clicking and dragging the mouse

1

I have the following challenge: Perform an area chart where the customer can drag areas of the chart (click and drag) and then save this "new view" after moving the areas .

The first idea that came to mind was to perform the displacement via Javascript by modifying the axis of the graph from the click events, but would feel a certain difficulty in storing this information back into the database.

After thinking a little about it, I decided to start from the principle of not reinventing the wheel, so I went looking for libraries that already do this, but it's not that simple to find.

So the question is: Do you know of any component / resource that satisfies this need? Preferably in web environment, but being local is also welcome!

    
asked by anonymous 30.01.2014 / 12:55

1 answer

1

In fact, the ideal is not to reinvent the wheel, but you mentioned: store this information back in the database ... Why the difficulty?

Before storing in the bank, save the X and Y coordinates somewhere and work with them.

Now speaking of the "component / feature" you're looking for, I I know, we have the gRaphael and HighCharts .

    
30.01.2014 / 13:05