Closed (fixed)
Project:
Highcharts
Version:
7.x-2.x-dev
Component:
Views integration
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 May 2012 at 20:28 UTC
Updated:
6 Aug 2012 at 03:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
webflo commentedUps. The view class was in the wrong info file.
Comment #2
Scryver commentedWOW! You really fixed it! What was the exact problem?
Comment #3
webflo commentedThe theme function was buggy. This patch is not in committed yet. Back to RTBC.
Comment #4
Scryver commentedOh yeah, of course it needs more review. But really it should be committed soon :-)
If I have it correct it was mostly implementing the hook_theme(), right? Thanks again.
Comment #5
stovak commentedWe're currently re-writing the core configuration of this module to make it more responsive and object-oriented. We'll have a solution for the tooltip formatter soon. One that makes sense and is consistant with drupal standards.
We're looking at a config stack that isn't based on loading a JSON file. Hope to have it committed soon.
-tom
Comment #6
scottrigby@stovak I think your comment in #5 was meant for #1466016: Tooltip formatter (I'm pretty sure the new upcoming php-library/oo approach won't affect this container rendering issue).
@webflo Personally I think this patch looks good. We can't declare
'theme' => 'highcharts_chart'directly in hook_views_plugins() because theme_highcharts_chart() expects only the $attributes array . This looks like a good way to handle that.The main reason I added that doxy comment @todo instead of just changing this when folding in the 1.x Views integration stuff into the 2.x branch, was the question about themability. But for the hichart container remdering, IMO we don't loose much there using this theme wrapper function over the standard Views tpl file (seeing how we now have two theme functions that can be overridden!).
Comment #7
stovak commentedSorry, guys. Yes, the response is to the other issue. Sorry.
Comment #8
mpisano commentedIts works!!!
After apply the patch, I had this error:
Notice: Undefined property: stdClass::$tooltip in highcharts_render() (line 87 de /sites/all/modules/highcharts/highcharts.module).
Notice: Trying to get property of non-object in highcharts_render() (line 87 de /sites/all/modules/highcharts/highcharts.module).
I've solved commenting the 87 line of highcharts.module:
//$formatter = $options->tooltip->formatter;
//if ($formatter) {
// drupal_add_js("Drupal.settings.highcharts.{$chart_id}.tooltip.formatter = $formatter", array('type' => 'inline'));
//}
Thanks for this fantastic module!!! after all the day trying with all versions of Charts, Google chart API and others, these is de only 7. module that works fine with views.
Comment #9
dshields commentedWhere should I apply this patch?
When I try to apply in the root of the highcharts directory, I get the following:
Any help would be appreciated!
Comment #10
dshields commentedNevermind, I figured it out - had to manually edit the .info file for now..
Comment #11
scottrigbyChanging name for clarity. This will be part of refactoring Highcharts views integration in the 2.x branches.
Comment #12
scottrigbyA slightly more extreme version committed as part of 84f4128