Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

145 lines (125 sloc) 4.096 kB
/// <reference path="highcharts.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
Highcharts.setOptions({
global: {
useUTC: false
}
});
Highcharts.setOptions({
lang: {
months: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
weekdays: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']
}
});
var animate: HighchartsAnimation = {
duration: 200,
easing: "linear"
};
var gradient: HighchartsGradient = {
linearGradient: {
x1: 0,
y1: 0,
x2: 500,
y2: 500
},
stops: [
[0, 'rgb(255, 255, 255)'],
[1, 'rgb(200, 200, 255)']
]
}
var color = "#fcfcff";
var chart1 = new Highcharts.Chart({
chart: {
renderTo: "container"
},
xAxis: [{
}],
series: [<HighchartsLineChartSeriesOptions>{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
type: "line",
allowPointSelect: true
}]
});
chart1.addSeries<HighchartsBarChartSeriesOptions>({
enableMouseTracking: true,
data: [1, 2, 3, 4, 5]
});
console.log((<HighchartsLineChartSeriesOptions>chart1.series[0].options).dashStyle);
var chart2 = new Highcharts.Chart({
chart: {
renderTo: 'container',
width: 400,
height: 400,
spacingRight: 20
},
xAxis: [{
type: 'logarithmic',
min: 1,
max: 1000,
endOnTick: true,
tickInterval: 1,
minorTickInterval: 0.1,
gridLineWidth: 1
}],
yAxis: [{
type: 'logarithmic',
min: 1,
max: 1000,
tickInterval: 1,
minorTickInterval: 0.1,
title: {
text: null
}
}],
legend: {
enabled: false
},
series: [<HighchartsScatterChartSeriesOptions>{
data: [
[550, 870], [738, 362], [719, 711], [547, 665], [595, 197], [332, 144],
[581, 555], [196, 862], [6, 837], [400, 924], [888, 148], [785, 730],
[374, 358], [440, 69], [704, 318], [646, 506], [238, 662], [233, 56],
[622, 572], [563, 903], [744, 672], [904, 646], [390, 325], [536, 491],
[676, 186], [467, 145], [790, 114], [437, 793], [853, 243], [947, 196],
[395, 728], [527, 148], [516, 675], [632, 562], [52, 552], [605, 580],
[790, 865], [156, 87], [584, 290], [339, 921], [383, 633], [106, 373],
[762, 863], [424, 149], [608, 959], [574, 711], [468, 664], [268, 77],
[894, 850], [171, 102], [203, 565], [592, 549], [86, 486], [526, 244],
[323, 575], [488, 842], [401, 618], [148, 43], [828, 314], [554, 711],
[685, 868], [387, 435], [469, 828], [623, 506], [436, 184], [450, 156],
[805, 517], [465, 997], [728, 802], [231, 438], [935, 438], [519, 856],
[378, 579], [73, 765], [223, 219], [359, 317], [686, 742], [17, 790],
[20, 35], [410, 644], [984, 325], [503, 882], [900, 187], [578, 968],
[27, 718], [355, 704], [395, 332], [641, 548], [964, 374], [215, 472],
[323, 66], [882, 542], [671, 327], [650, 193], [828, 632], [760, 929],
[607, 335], [928, 826], [462, 598], [631, 411]
],
type: 'scatter'
}]
});
chart1.exportChart(null, {
backgroundColor: '#FFFFFF'
});
var div: HTMLDivElement;
var r = new Highcharts.Renderer(div, 20, 30);
var box = r.text("Hello", 10, 10).getBBox();
var highChartSettings: HighchartsOptions = {
chart: {
width: 400,
height: 400
},
xAxis: [{
}],
series: [<HighchartsPieChartSeriesOptions>{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
};
var container = $("#container").highcharts(highChartSettings, (chart) => {
chart.series[0].setVisible(true, true);
});
var singleYAxisOptions: HighchartsOptions = {
yAxis: {}
};
var multipleYAxisOptions: HighchartsOptions = {
yAxis: [{},{}]
};
Jump to Line
Something went wrong with that request. Please try again.