score:3
Accepted answer
Okay, this works fine for me.
I added <meta http-equiv="x-ua-compatible" content="IE=11">
. I also loaded the HTML file locally in visual studio by adding it to the project and setting it to copy always
. I did not end up having to make any registry adjustments on my machine either.
C# file
using System;
using System.IO;
using System.Windows;
namespace Stackoverflow_question
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
string curDir = Directory.GetCurrentDirectory();
webbrowser1.Navigate(new Uri(String.Format("file:///{0}/test.html", curDir))) ;
}
}
}
HTML file
<!DOCTYPE HTML>
<!-- saved from url=(0016)http://localhost -->
<html>
<head>
<meta http-equiv="x-ua-compatible" content="IE=11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highcharts Example</title>
<style type="text/css">
</style>
</head>
<body>
<script src="https://code.highcharts.com/highcharts.src.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
<script type="text/javascript">
Highcharts.chart("container", {
chart: {
type: "spline",
inverted: true
},
title: {
text: "Atmosphere Temperature by Altitude"
},
subtitle: {
text: "According to the Standard Atmosphere Model"
},
xAxis: {
reversed: false,
title: {
enabled: true,
text: "Altitude"
},
labels: {
formatter: function () {
return this.value + "km";
}
},
maxPadding: 0.05,
showLastLabel: true
},
yAxis: {
title: {
text: "Temperature"
},
labels: {
formatter: function () {
return this.value + "°";
}
},
lineWidth: 2
},
legend: {
enabled: false
},
tooltip: {
headerFormat: "<b>{series.name}</b><br/>",
pointFormat: "{point.x} km: {point.y}°C"
},
plotOptions: {
spline: {
marker: {
enable: false
}
}
},
series: [{
name: "Temperature",
data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1],
[50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]
}]
});
</script>
</body>
</html>
If this code doesn't resolve your issue. I would suspect something needs to be changed about your Local Intranet Security Zone settings.
Source: stackoverflow.com
Related Query
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Highchart Sankey is not working with same from value as to value settings
- Javascript variable with Comma separated values not working in HighChart
- Highchart is not working with javascript
- JavaScript code inside TypeScript file .ts not working
- HighChart with large amount of data not working
- Date.parse() not working with highchart
- my highchart is currently is not working with pie spline chart in updating after rendering chart
- HighChart with large amount of data(complex structure) not working
- Stacked Column Highchart with Angular6 is not working
- HighChart is not working with multiple axis
- Highchart is not working when I am fetching the axis values from database
- ColorAxis with HighChart not working as expected with different set of library
- Highchart Pie Chart not working properly with series
- Creating Pie Chart from external JSON not working
- HighCharts angular not working with dynamic data from Angular service
- Highchart (pie chart) with data from HTML table not displaying legend
- Scrollbar is not working with Dumbell Chart in Highchart
- highchart custom menu with when i drilldown and drillup custom event (contextmenu) not working
- Highchart from Mysql not working
- datatable and highchart functionality not working with 'View All' bootstrap tab
- Highchart javascript chart example not working
- Highchart data from ajax its not working for me
- highcharts download not working from html page with iframe in IE
- How to create a new Highstock chart with new Highchart and not jquery?
- Convert from string with milliseconds to date object Javascript
- Highchart is not working on Google chrome
- last label in x axis with datetime format not coming in highchart
- Highcharts - update column graph with setData() not working
- using angular directive to draw highchart pie chart but when i am using it in success function it is not working
More Query from same tag
- Highcharts scrollbar not appearing
- Highlight the corresponding y axis on mouse overr over the bar chart based on that axis in highchart
- Rails BigDecimal JSON output for Highcharts
- Highcharts error 13, but rendering Div exists
- Data Grouping - Monthly (end-of-month)
- Highcharts show two line series with same values
- Exclude "H:m"in dateTimeLabel Highcharts
- Highcharts: Syncing axis ticks across Multiple Charts
- Highcharts update graph from array data
- How to avoid overlapping of dataLabels in highchart pie chart?
- Which web charting libraries export well with Wicked PDF?
- Highcharts Highmaps How to change projection with hc-transform
- Formatting tooltip for everviz
- Highchart pie legend circles
- Responsive Highchart legend position
- Highcharts - Double click event
- How to reduce space of tooltip box in highchart?
- How to get id of clicked element in highchart contextmenu
- Highcharts - Issue with the chart reflow function
- Highstock/Highcharts timestamp values
- How can I open a high chart in a modal window when the chart is clicked on?
- Populate three highchart graphics with one ajax call
- Label distance in polar chart is not equal on each angle
- Draw symbols between bars in highcharts
- Drawing mysql data with highcharts
- How to list dates (day-by-day) on xAxis using HighCharts
- Scrape Highcharts data to CSV file
- How to stop Highmaps on mouse hover to change SVG path orders
- Highcharts - x-axis label disappears for polar chart with any endAngle
- SVG tooltip z-index with html title