The settings for the Y axis title don't get saved. After setting highcharts formatting and saving the Y Axis title in the highcharts views UI, I reopen it and the Y axis i blank. This results in the following error when I look at the view:
Notice: Undefined index: yAxis in template_preprocess_views_highcharts() (line 21 of /Applications/MAMP/htdocs/drupal7/sites/all/modules/contrib/highcharts/theme/views_highcharts.theme.inc).
Notice: Undefined index: yAxis in template_preprocess_views_highcharts() (line 22 of /Applications/MAMP/htdocs/drupal7/sites/all/modules/contrib/highcharts/theme/views_highcharts.theme.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | highcharts-yAxislabel-1425146.patch | 6.35 KB | somimi |
| #2 | highcharts-yAxislabel-1425146#comment-5559398.patch | 11.78 KB | somimi |
Comments
Comment #1
somimi commentedI get the same error, and my Y-axis doesn't get saved either. Neither do my data labels for the X-axis seem to work, though I see that that's already been submitted as a separate issue,
Comment #2
somimi commentedThis issue seems to be caused by mismatched labeling between these two files: views_highcharts.theme.inc and views_highcharts_plugin_style_highcharts.inc.
I made a patch that solves the y-Axis labeling, but I still can't get the x-axis labels to show appropriately. I've got a date field for each node that's being graphed, and each group of bars should be labelled with their respective date on the x-axis. Any ideas? I imagine it's got to do with lines 38-70 or so of views_highcharts.theme.inc, but I need more help figuring out how to retrieve the appropriate field label from the view and populating the array with those values.
Comment #3
somimi commentedHey stovak, have you had a chance to look at this issue? The latest alpha release still shows the same error that prevents the y-axis label from rendering appropriately. Take a look at line 148 of views_highcharts_plugin_style_highcharts.inc. It should be
'#default_value' => $this->options['y_axis']['title']instead of'#default_value' => $this->options['yAxis']['title_text']And lines 28-29 of views_highcharts.theme.inc also use
$options['yAxis']instead of$options['y_axis'].Comment #4
stovak commentedadded and re-released as alpha 3.
Comment #5
wormz30 commentedI'm experiencing the same error and I have the latest 7.x version.
Comment #6
stovak commentedI believe this was fixed and remains fixed in Alpha 5...???
Comment #7
stovak commentedComment #9
larskleiner commentedThis one seems to have been fixed only in 7.x-1.0-alpha6 but not in 7.x-1.x-dev.
Comment #10
larskleiner commentedSee http://drupal.org/node/1773498 for the underlying issue with #9.