score:4

Accepted answer

to change the color of the line you should use the following code:

series: [{
    color: '#ffff00',
    linecolor: '#ff0000'
   }]

so change your script into following:

 <html>
    <head>
        <title>
            chart
        </title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.3.6/proj4.js"></script>
        <script src="https://code.highcharts.com/stock/highstock.js"></script>
        <script src="https://code.highcharts.com/maps/modules/map.js"></script>
        <script src="https://code.highcharts.com/modules/data.js"></script>
        <script src="https://code.highcharts.com/mapdata/countries/in/in-all.js"></script>
    </head>
    <body>
        <div id="chart-container" style="min-width: 400px; height: 600px; margin: auto"></div>
        <pre id="csv" style="display: none">date,adj_high,adj_low
            2018-04-27,164.33,160.63
            2018-04-30,167.26,161.84
            2018-05-01,169.20,165.27
            2018-05-02,177.75,173.80
            2018-05-03,177.50,174.44
        </pre>
        <script type="text/javascript">
            highcharts.stockchart('chart-container', {
                chart: {
                    type: 'line'
                },
                title: {
                    text: 'chart',
                },
                legend: {
                    enabled: true,
                    floating: true,
                    verticalalign: 'top',
                    align:'left'
                },
                credits: {
                    enabled: false
                },
                data: {
                    csv: document.getelementbyid('csv').innerhtml
                },
                series: [{
                    color: '#ffff00',
                    linecolor: '#ff0000'
                }]
            });
        </script>
    </body>
    </html>

Related Query

More Query from same tag