89172

highcharts drilldown column chart change Aaxis lables

Question:

any idea how to change X Axis lables in the drill down chart? now I get king , queen , 2 AND I want it to show me : 8,9,10 I tried to add categories: ['9', '8','1'], but it's not working :\ <a href="http://jsfiddle.net/mnXy3/6/" rel="nofollow">http://jsfiddle.net/mnXy3/6/</a> any idea? Thanks, Mor

Answer1:

Second solution is using a pair {name,y} where x is category, then on xAxis set type as category. Example:<a href="http://jsfiddle.net/mnXy3/11/" rel="nofollow">http://jsfiddle.net/mnXy3/11/</a>

Answer2:

You need to specify your drilldown data differently

window.c = [ ['9', 8], ['8', 9], ['1', 10] ];

Demo: <a href="http://jsfiddle.net/robschmuecker/mnXy3/10/" rel="nofollow">http://jsfiddle.net/robschmuecker/mnXy3/10/</a>

Recommend

  • Treating a string as an integer
  • Multiple MySQL Table JOINs / id-to-value replacement / aliases
  • Algorithm of N queens
  • How do I get elements of a hash whose keys match a given regex?
  • How to increase the python speed over loops?
  • Keep same scale in different graphs ggplot2
  • JFreechart X and Y axis scaling
  • Change navbar in bootstrap if user login
  • Is there a way to clone native functions in javascript like window.alert or document.write
  • cell spacing in div table
  • Django foreign key drop down
  • MS Access - How to change the linked table path by amend the table
  • Breaking out column by groups in Pandas
  • How to clear text inside text field when radio button is select
  • Read text file and split every line in MSBuild
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • C# - Serializing and deserializing static member
  • Java applet as stand-alone Windows application?
  • Sending data from AppleScript to FileMaker records
  • Calling of Constructors in a Java
  • Traverse Array and Display in markup
  • bootstrap to use multiple ng-app
  • Transpose CSV data with awk (pivot transformation)
  • Matrix multiplication with MKL
  • How to get icons for entities from eclipse?
  • KeystoneJS: Relationships in Admin UI not updating
  • AngularJs get employee from factory
  • trying to dynamically update Highchart column chart but series undefined
  • Load html files in TinyMce
  • Error creating VM instance in Google Compute Engine
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • Hits per day in Google Big Query
  • Angular 2 constructor injection vs direct access
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • File not found error Google Drive API
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy
  • UserPrincipal.Current returns apppool on IIS
  • Converting MP3 duration time