Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7661321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:34:58+00:00 2026-05-31T13:34:58+00:00

I am using Highcharts to draw a line graph. When the page loads, the

  • 0

I am using Highcharts to draw a line graph.
When the page loads, the line graph is drawn. Please note, that i got an y-Value for every x-Value starting from 0 till 700 ( 0,1,2,3,…,700). This is how i create the graph:

                chart = new Highcharts.Chart({
                                    chart: {
                                         renderTo: 'container',
                                         animation: false,
                                         type: 'line',
                                         marginTop: null,
                                         marginRight: 55,
                                         marginBottom: 50,
                                         marginLeft: 80,
                                         backgroundColor: backgroundColor,
                                         spacingTop: 10,
                                         spacingRight: 10,
                                         spacingBottom: 15,
                                         spacingLeft: 10,
                                         },
                                   title: {
                                         text: ' Graph',
                                         style: {color: graphLabelColor},
                                         x: -20 //center
                                         },
                                   xAxis: {
                                         title: {
                                         text: 'xAXIS',
                                         style: {
                                            color: axisLabelColor
                                            },
                                         },
                                         min:0,
                                         max: 600,
                                         gridLineColor: gridLineColor,
                                         minorTickInterval: 50,
                                         minorTickLength: 1,
                                         tickInterval: 100,
                                         minorGridLineWidth: 0,
                                         gridLineWidth: 1,
                                         lineColor: axisColor,
                                         labels: { 
                                            style : {
                                                color: axisColor
                                                }
                                            },
                                         plotLines: [{
                                                     value: 0,
                                                     width: 0,
                                                     color: axisColor
                                                     }]
                                         },
                                  yAxis: {
                                         title: {
                                            text: 'yAxis',
                                            style: {color: 
                                                axisLabelColor
                                            },
                                         },
                                         min:0,   
                                         max: 700,
                                         gridLineColor: gridLineColor,
                                         lineColor: axisColor,
                                         minorTickInterval: 50,
                                         minorTickLength: 1,
                                         minorGridLineWidth: 0,
                                         tickInterval: 100,
                                         labels: { 
                                            style: { 
                                                color: axisColor
                                            }
                                         },
                                         plotLines: [{
                                                     value: 0,
                                                     width: 0,
                                                     color: axisColor
                                                     }]
                                         },
                                    exporting: {
                                         enabled: false
                                         },
                                    tooltip: {
                                            enabled: true,
                                            borderColor: crosshairColor,
                                            crosshairs: [{
                                                width: 1,
                                                color: crosshairColor,
                                            },
                                                {
                                                width: 1,
                                                color: crosshairColor,
                                            }],
                                            formatter: function() {
                                                return '<b>'+ this.series.name +'</b><br/>'+this.y +' & '+ this.x.toFixed(0);
                                                }
                                         },
                                     legend: {
                                            layout: 'vertical',
                                            align: 'right',
                                            verticalAlign: 'top',
                                            x: -10,
                                            y: 100,
                                            borderWidth: 1,
                                            borderColor: plotlineColor,
                                            enabled: false,
                                            floating: true,
                                            shadow: true
                                            },
                                     plotOptions: {
                                            series: {
                                                enableMouseTracking: true
                                            },
                                            line: {
                                                color:plotlineColor,
                                                },
                                            },
                                     series: [{
                                             lineWidth: 2,
                                             name: carname,
                                             data: dataArray,
                                             marker: {
                                                  color:crosshairColor,
                                                  radius: 1
                                                  }
                                             }]

                                         });

In my HTML-Page I got two buttons to increase/decrease (+1/-1) a number in a textfield, starting at 200. The number represents a x-Coordinate in the graph.
I would like to highlight the shown number of my textfield in the graph with another color and a bigger point when the graph is loaded the first time and also when the user changes the number using one of these buttons. How can I do this?

I tried

       chart.series[0].options.data[valueOfTextfield].color = 'yellow';
       chart.redraw(true);

in the onclick method of the buttons but it doesnt work.

Thanks for your answers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:34:58+00:00Added an answer on May 31, 2026 at 1:34 pm

    use the select method of the point object
    https://api.highcharts.com/highcharts/series.line.point.events.select

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using HighCharts for a line graph and i am attemping to change
I've got this code I'm using to insert data into Highcharts def self.amount_on(date) where(date(created_at)
I am trying to display a graph with HighCharts en i got stacked with
I'm using Highcharts and would like to display a simple column graph, but instead
I am using HighCharts to produce some graphs. For some reason the graph axis
I am using a Highcharts Stock graph to show a percentage with respect to
I've got an HTML email template that's using a kludgy process as follows: Pull
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C#, I need a class called User that has a username, password, active

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.