Closed (fixed)
Project:
Highcharts
Version:
7.x-1.0-alpha5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2012 at 20:31 UTC
Updated:
8 Apr 2012 at 11:00 UTC
No matter what I select, the label for my x-axis is just 0, 1, 2, etc...
I'm using an aggregate view, I don't know if that helps the debug process. I'll take a look at the code myself and see if I can find a fix.
Comments
Comment #1
terbs commentedConfirming that the aggregation has nothing to do with the inability to set the label. I made a basic view of comments per node. Setting node title as the x-axis label is not possible. Using highcharts library 2.1.9
Comment #2
terbs commentedI couldn't find anywhere in the module code where the label was actually being passed to the JS, so I figure that piece was just incomplete? dunno?
Anyway, I got my x-axis labels working by putting this chunk of code in views_highcharts_theme.inc around line 96
It's not thoroughly tested.
Comment #3
somimi commentedThank you!! I've been trying to figure out where the labels were being passed as well, and kept thinking I was just missing something or not understanding the code. I used this snippet and my x-axis labels are finally showing up!
Comment #4
meSteHere is working fine, BUT the code suggested in comment #2, conforming to the latest dev (Jan 10th), must be placed at line 71.
Comment #5
Georgique commentedSubscribe
Comment #6
Georgique commentedFixed.