score:4
You need to overwrite drilldown function, to avoid add action to labels.
http://jsfiddle.net/phpdeveloperrahul/FW64T/
(function (H) {
H.wrap(H.Point.prototype, 'init', function (proceed, series, options, x) {
var point = proceed.call(this, series, options, x),
chart = series.chart,
tick = series.xAxis && series.xAxis.ticks[x],
tickLabel = tick && tick.label;
if (point.drilldown) {
// Add the click event to the point label
H.addEvent(point, 'click', function () {
point.doDrilldown();
});
// Make axis labels clickable
if (tickLabel) {
if (!tickLabel._basicStyle) {
tickLabel._basicStyle = tickLabel.element.getAttribute('style');
}
tickLabel.addClass('highcharts-drilldown-axis-label') .css({
'text-decoration': 'none',
'font-weight': 'normal',
'cursor': 'auto'
})
.on('click', function () {
if (point.doDrilldown) {
return false;
}
});
}
} else if (tickLabel && tickLabel._basicStyle) {
}
return point;
});
})(Highcharts);
score:0
In drilldown just put
activeAxisLabelStyle: {
cursor: 'pointer',
color: '#0d233a',
fontWeight: 'bold',
textDecoration: 'none'
}
score:0
In case you have a chart where only a selection of columns have drilldowns, Sebastian Bochan's answer needs to be modified so that all columns have the same label:
(function (H) {
//DATALABELS
H.wrap(H.Series.prototype, 'drawDataLabels', function (proceed) {
var css = this.chart.options.drilldown.activeDataLabelStyle;
proceed.call(this);
css.textDecoration = 'none';
css.fontWeight = 'normal';
css.cursor = 'default';
css.color = 'blue';
H.each(this.points, function (point) {
if (point.dataLabel) { // <-- remove 'point.drilldown &&'
point.dataLabel
.css(css)
.on('click', function () {
return false;
});
}
});
});
})(Highcharts);
Also note that these settings are global, so also affect any other charts you may have.
score:1
{...
series: [],
drilldown: {
activeAxisLabelStyle: {
cursor: 'default',
color: '#3E576F',
fontWeight: 'normal',
textDecoration: 'none'
},
activeDataLabelStyle: {
cursor: 'default',
color: '#3E576F',
fontWeight: 'normal',
textDecoration: 'none'
}
}
}
score:3
Or you can do it with css
.highcharts-drilldown-axis-label{
text-decoration: none !important;
}
score:5
We can use drilldown option to control the drilldown.
drilldown: {
//for axis label
activeAxisLabelStyle: {
textDecoration: 'none',
fontStyle: 'italic'
},
//for datalabel
activeDataLabelStyle: {
textDecoration: 'none',
fontStyle: 'italic'
}
}
Source: stackoverflow.com
Related Query
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- Highcharts multiple column chart with drilldown, correct formatting of drilldown axes
- Highcharts - column chart with drilldown to waterfall
- Remove gap in Highcharts column chart from null value from JSON file in React
- HighCharts column chart populated with series data from a function
- Highcharts column chart with data from mongodb
- Creating a drilldown chart with Highcharts that contain double(multiple) columns for each column (see example for better explanation)
- Highcharts stacked column chart 3 level drilldown from JSON
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- Highcharts chart with 'datetime' xAxis - use categories on drilldown
- Highcharts - How can I remove starting and ending padding from area chart
- Add dynamic data to line chart from mysql database with highcharts
- Highcharts Grouped Column Chart with Multiple Groups?
- HighCharts : How to add or remove "chart context menu" from chart container?
- Highcharts - Remove first marker from Area chart in every series
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- Setting data with null values doesn't remove dots from the chart
- Drilldown for grouped column chart in highcharts
- Highcharts - Column chart with empty columns for date in x-axis
- Can highcharts generate a 3d column chart like this?
- In Highcharts drilldown charts, Custom Formatting of X-Axis label displays the label with underline even in the last level
- Highcharts - position column chart from the top
- how to add new index Highcharts column drilldown chart
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts column chart color by single color but with different brightness level as per respective column value
- Remove onhover effect from column chart
- Highcharts gantt chart : Task progress indicator need to show a single task for various status like completed,inprogress etc with different colors
- How to change color of bar in column chart with different level of percentage in highcharts
- Column chart with negative values and categories on xAxis in HighCharts
More Query from same tag
- Highcharts | How to avoid Pie charts inside labels overlap
- Highcharts Area graph, use 2 fill colors above / below X axis
- ng2-charts live data animation
- Images/Icons in datalabel not getting exported - highchart treemap
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
- Width and show issue when use highchart
- in highchart, how to control space between legend and charting area
- iOS Swift Highcharts Pie with Gradient Fill is black
- making highchart to be a dynamic data driven
- Highcharts stacked area - update tooltip only after exact area mouse over
- Multi series export is misaligned in highcharts
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Highcharts Timeline xAxis
- Highchart, edit data from function call with arguments
- How to select or highlight the x axis border on click of Y axis label in gantt chart highchart
- Highcharts with JSON to customize multiple series
- How to remove batch of points in the period based on xAxis(time) coordinates from the series in Highstock
- Custom series connecting line
- Group data by weekdays in Highchart
- Highcharts Java Api wrapper for JSF?
- How to remove/hide export button in full screen view in highcharts-angular
- highcharts remove redundant data points to improve speed
- Highcharts smooth transition on data update using Angular and ng-highcharts
- Highcharts grouped bar charts with multiple axes
- How to position highcharts tooltip above chart with outside:true
- Highchart is not occupying entire div in Shiny app
- Issue in semi circular donut chart
- How to compare weekly data?
- How do you remove elements added with .add() function in HighCharts?
- Highcharts map example not working