I have a use case where it would be very helpful to have the option in a views display to reverse the Y axis. So instead of the top being the highest value and the bottom being the lowest value it would reverse having the top be the lowed value and the bottom being the highest value.

Thanks.

CommentFileSizeAuthor
#1 flot0.6-invert-axes.new_.patch1.76 KBdeggertsen

Comments

deggertsen’s picture

Title: Reverse Y Axis » Invert Y Axis
StatusFileSize
new1.76 KB

So I've been doing some research on this and found this issue in flot: http://code.google.com/p/flot/issues/detail?id=23

So I applied the patch provided there (I've attached it) and am trying to figure out how to implement it... I figured out I could probably add a checkbox to the style settings by adding this after the form entry for ['pad'] in flot_views_plugin_style.inc:

$form['y']['invert'] = array(
      '#type' => 'checkbox',
      '#title' => t('Invert axis'),
      '#default_value' => $this->options['y']['invert'],
    );

But I'm having a hard time understanding much more than that. I've tried to refer to http://people.iola.dk/olau/flot/API.txt but it all goes over my head...

Any help would be greatly appreciated.

beakerboy’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)