score:3
You can make the title display:block
and then set the left
to 0px
. Then set the width to 100%
. Now the title spans the whole width of the chart. Now apply a bottom border of green color. You will get the desired effect.
In the style property of the title, you could give
"width": '100%',
"display": 'block',
"left": 0
Have a look at this fiddle - https://jsfiddle.net/rwmntze8/
Hope this helps!
PS: Someone removed the original image containing the requirements, attached by the OP in the question, during the edits (You can find it in the edit revisions). I have attached it here for reference, in case someone thinks why the green line spans till the end.
score:3
Just need to add an empty css below, nothing more:
.highcharts-title {
border-bottom: 1px solid black;
}
Doing it by pure CSS (not by setting element style using JS) gives you the best performance.
Live example: http://jsfiddle.net/fqes890o/
score:4
What you'd need to do is modify the style
attribute like this:
title: {
useHTML: true,
text: 'Header Text in Line1 </br> Line 2 Text',
style: {
"text-align": "center",
"border-bottom": "1px solid green"
}
},
Source: stackoverflow.com
Related Query
- HighChart - Can draw line between Title and SubTitle
- How can I do in Highchart to have 1px space between the columns and the y Axis?
- HighChart Line Draw issues(How to draw contineous line between 2 points )
- How can i reduce gap between legend and chart in highchart of type column where legend is aligned at top without reducing height of chart?
- Is there a way to disable the Title and Subtitle in Highcharts?
- Can color of data label be different inside and outside of the bar in Highchart
- Highcharts - How to remove connecting line between fixed tooltip and point
- How to add image in Highcharts Title and subtitle
- How do I reduce the space between title and chart of a High Chart?
- Programmatically draw rect and line in Highcharts with zoom
- Highchart (basic line chart) which can have multiple values vs x axis?
- High charts - Increasing the space between chart and title
- Highcharts - reduce the space between zero data line and x-axis
- How to change space value between grid and yAxis in Highcharts line chart
- Highcharts - programmatically draw a line or graphic between two related points
- How can I do a padding between my highest x-value and the plot's right gap in Highcharts?
- Draw small symmetrical arc line path between two markers on world map in Highmaps
- Padding between column and y axis line - is this possible?
- Draw line before marker appear Highchart
- Unable to create Highchart where i can show different - different data on clicking category and series
- How can i export row data from highchart to excel file and not csv?
- Highcharts: how to draw line segments with click-and-drag and without chart to scroll?
- Highstock title and subtitle overlap
- legend labelFormatter: getting space between name and percentage so they line up
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Highcharts - How to prevent long title with line break from overflowing subtitle
- I had follow someone code samples and try apply to my HighChart program but I can't get it work at all
- Highchart bar chart: X-Axis label is cut off even when there is space between chart and label
- How to customize graph title and subtitle
- How can i avoid congestion between x and y axis in my graph with highcharts?
More Query from same tag
- JIRA Gadget Plugin with HighCharts
- HighCharts : How to add click event on colorAxis in heatmap
- Highcharts format labels on grouped stacked bar diagram with $ k, M for currency and 'hrs' for time
- How to update drilldown data in highchart without redraw the chart?
- R Highcharter customize legend to show only certain values
- Why are there disabled buttons in HighStock Range Selector? And how to enable them?
- Changing themes using highcharts-angular
- How to change the color of single point in spiderweb chart
- Highchart guage needles showing below data labels
- Highcharts stickyTracking
- highcharts Scatter Chart not loading with LOTS of data
- Using Json in HighCharts
- Highcharts Detect mouseOver event only in the colored area
- How to set values in JavaScript (Highcharts) using PHP
- Resize highchart based on container changing NOT window resize
- Highcharts Tooltip - Returns unwanted empty string causing render problems
- Integrate social media network sharing buttons to Highcharts.
- Highcharts Server side generation not working on windows 2008 server
- Highcharts graph X-axis label for different date ranges
- Scrape data from a highchart using selenium
- Highstock graph shows points instead of line at certain zoom levels
- How to add random ticks on a line chart at a specific position
- highcharts : set title on exporting
- Labels inside pie chart (highcharts) without the distance trick
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- HighCharts : Tooltips exist but line is not drawn in the chart
- Using highcarts in react native and getting the error
- Highcharts redraw and sort data on draggable line graph
- angular2-highcharts error: “Chart is unknown chart type”
- Highcharts : set a maximum number of ticks with a fixed interval