Merge pull request #1 from Tapad/highcharts

Adding a couple missing highcharts properites
This commit is contained in:
David Newell
2016-07-28 11:39:37 -04:00
committed by GitHub
2 changed files with 21 additions and 3 deletions
+1
View File
@@ -2258,6 +2258,7 @@ function test_PointObject() {
var point = <HighchartsPointObject>$('#container').highcharts().get('point1');
var category = point.category;
var percentage = point.percentage;
point.index;
point.remove();
point.remove(false);
point.remove(false, {duration: 50});
+20 -3
View File
@@ -1,4 +1,4 @@
// Type definitions for Highcharts 4.1.9
// Type definitions for Highcharts 4.2.5
// Project: http://www.highcharts.com/
// Definitions by: Damiano Gambarotto <http://github.com/damianog>, Dan Lewi Harkestad <http://github.com/baltie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -4817,6 +4817,17 @@ interface HighchartsPlotOptions {
*/
interface HighchartsIndividualSeriesOptions {
type?: string;
/**
* The main color or the series. In line type series it applies to the line and the point markers unless otherwise
* specified. In bar type series it applies to the bars unless a color is specified per point. The default
* value is pulled from the options.colors array.
*/
color?: string;
/**
* You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user
* that the points and lines can be clicked.
*/
cursor?: string;
/**
* An array of data points for the series. For the area series type, points can be given in the following ways:
*
@@ -4867,6 +4878,11 @@ interface HighchartsIndividualSeriesOptions {
* The name of the series as shown in the legend, tooltip etc.
*/
name?: string;
/**
* A pixel value specifying a fixed width for each column or bar. When null, the width is calculated from
* the pointPadding and groupPadding.
*/
pointWidth?: number;
/**
* This option allows grouping series in a stacked chart. The stack option can be a string or a number or anything
* else, as long as the grouped series' stack options match each other.
@@ -5472,12 +5488,12 @@ interface HighchartsOptions {
* The X axis or category axis. Normally this is the horizontal axis, though if the chart is inverted this is the
* vertical axis. In case of multiple axes, the xAxis node is an array of configuration objects.
*/
xAxis?: HighchartsAxisOptions | HighchartsAxisOptions[];
xAxis?: HighchartsAxisOptions[] | HighchartsAxisOptions;
/**
* The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the
* horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
*/
yAxis?: HighchartsAxisOptions | HighchartsAxisOptions[];
yAxis?: HighchartsAxisOptions[] | HighchartsAxisOptions;
}
interface HighchartsGlobalOptions extends HighchartsOptions {
@@ -6098,6 +6114,7 @@ interface HighchartsPointObject {
*/
category: string | number;
name: string;
index: number;
/**
* The percentage for points in a stacked series or pies.
* @since 1.2.0