angular2-google-chart
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -141,2 +141,24 @@ /* | ||
}; | ||
this.gauge_ChartData = [ | ||
['Label', 'Value'], | ||
['Systolic', 120], | ||
['Diastolic', 80]]; | ||
this.gauge_ChartOptions = { | ||
width: 400, height: 120, | ||
redFrom: 90, redTo: 100, | ||
yellowFrom: 75, yellowTo: 90, | ||
minorTicks: 5 | ||
}; | ||
this.area_ChartData = [ | ||
['Year', 'Sales', 'Expenses'], | ||
['2013', 1000, 400], | ||
['2014', 1170, 460], | ||
['2015', 660, 1120], | ||
['2016', 1030, 540] | ||
]; | ||
this.area_ChartOptions = { | ||
title: 'Company Performance', | ||
hAxis: { title: 'Year', titleTextStyle: { color: '#333' } }, | ||
vAxis: { minValue: 0 } | ||
}; | ||
} | ||
@@ -147,3 +169,3 @@ AppComponent = __decorate([ | ||
directives: [angular2_google_chart_directive_1.GoogleChart], | ||
template: "\n <div id=\"line_chart\" [chartData]=\"line_ChartData\" [chartOptions]= \"line_ChartOptions\" chartType=\"LineChart\" GoogleChart></div>\n\t<div id=\"bubble_chart\" [chartData]=\"bubble_ChartData\" [chartOptions] = \"bubble_ChartOptions\" chartType=\"BubbleChart\" GoogleChart></div>\n <div id=\"scatter_chart\" [chartData]=\"scatter_ChartData\" [chartOptions] = \"scatter_ChartOptions\" chartType=\"ScatterChart\" GoogleChart></div>\n <div id=\"candle_chart\" [chartData]=\"candle_ChartData\" [chartOptions] = \"candle_ChartOptions\" chartType=\"CandlestickChart\" GoogleChart></div> \n <div id=\"pie_chart\" [chartData]=\"pie_ChartData\" [chartOptions] = \"pie_ChartOptions\" chartType=\"PieChart\" GoogleChart></div> \n <div id=\"bar_chart\" [chartData]=\"bar_ChartData\" [chartOptions] = \"bar_ChartOptions\" chartType=\"BarChart\" GoogleChart></div>\n\t\n\t" | ||
template: "\n <h2> Gaugh Chart</h2>\n <div id=\"gauge_chart\" [chartData]=\"gauge_ChartData\" [chartOptions]= \"gauge_ChartOptions\" chartType=\"Gauge\" GoogleChart></div>\n <h2> Area Chart</h2>\n <div id=\"area_chart\" [chartData]=\"area_ChartData\" [chartOptions]= \"area_ChartOptions\" chartType=\"AreaChart\" GoogleChart></div>\n <h2> Line Chart</h2>\n <div id=\"line_chart\" [chartData]=\"line_ChartData\" [chartOptions]= \"line_ChartOptions\" chartType=\"LineChart\" GoogleChart></div>\n <h2> Bubble Chart</h2>\n <div id=\"bubble_chart\" [chartData]=\"bubble_ChartData\" [chartOptions] = \"bubble_ChartOptions\" chartType=\"BubbleChart\" GoogleChart></div>\n <h2> Scatter Chart</h2>\n <div id=\"scatter_chart\" [chartData]=\"scatter_ChartData\" [chartOptions] = \"scatter_ChartOptions\" chartType=\"ScatterChart\" GoogleChart></div>\n <h2> CandlestickChart</h2>\n <div id=\"candle_chart\" [chartData]=\"candle_ChartData\" [chartOptions] = \"candle_ChartOptions\" chartType=\"CandlestickChart\" GoogleChart></div> \n <h2> Pie Chart</h2>\n <div id=\"pie_chart\" [chartData]=\"pie_ChartData\" [chartOptions] = \"pie_ChartOptions\" chartType=\"PieChart\" GoogleChart></div> \n <h2> Bar Chart</h2>\n <div id=\"bar_chart\" [chartData]=\"bar_ChartData\" [chartOptions] = \"bar_ChartOptions\" chartType=\"BarChart\" GoogleChart></div>\n\t\n\t" | ||
}), | ||
@@ -150,0 +172,0 @@ __metadata('design:paramtypes', []) |
@@ -11,7 +11,17 @@ /* | ||
template: ` | ||
<h2> Gaugh Chart</h2> | ||
<div id="gauge_chart" [chartData]="gauge_ChartData" [chartOptions]= "gauge_ChartOptions" chartType="Gauge" GoogleChart></div> | ||
<h2> Area Chart</h2> | ||
<div id="area_chart" [chartData]="area_ChartData" [chartOptions]= "area_ChartOptions" chartType="AreaChart" GoogleChart></div> | ||
<h2> Line Chart</h2> | ||
<div id="line_chart" [chartData]="line_ChartData" [chartOptions]= "line_ChartOptions" chartType="LineChart" GoogleChart></div> | ||
<div id="bubble_chart" [chartData]="bubble_ChartData" [chartOptions] = "bubble_ChartOptions" chartType="BubbleChart" GoogleChart></div> | ||
<div id="scatter_chart" [chartData]="scatter_ChartData" [chartOptions] = "scatter_ChartOptions" chartType="ScatterChart" GoogleChart></div> | ||
<h2> Bubble Chart</h2> | ||
<div id="bubble_chart" [chartData]="bubble_ChartData" [chartOptions] = "bubble_ChartOptions" chartType="BubbleChart" GoogleChart></div> | ||
<h2> Scatter Chart</h2> | ||
<div id="scatter_chart" [chartData]="scatter_ChartData" [chartOptions] = "scatter_ChartOptions" chartType="ScatterChart" GoogleChart></div> | ||
<h2> CandlestickChart</h2> | ||
<div id="candle_chart" [chartData]="candle_ChartData" [chartOptions] = "candle_ChartOptions" chartType="CandlestickChart" GoogleChart></div> | ||
<h2> Pie Chart</h2> | ||
<div id="pie_chart" [chartData]="pie_ChartData" [chartOptions] = "pie_ChartOptions" chartType="PieChart" GoogleChart></div> | ||
<h2> Bar Chart</h2> | ||
<div id="bar_chart" [chartData]="bar_ChartData" [chartOptions] = "bar_ChartOptions" chartType="BarChart" GoogleChart></div> | ||
@@ -135,2 +145,25 @@ | ||
}; | ||
public gauge_ChartData = [ | ||
['Label', 'Value'], | ||
['Systolic', 120], | ||
['Diastolic', 80] ]; | ||
public gauge_ChartOptions = { | ||
width: 400, height: 120, | ||
redFrom: 90, redTo: 100, | ||
yellowFrom:75, yellowTo: 90, | ||
minorTicks: 5 | ||
}; | ||
public area_ChartData = [ | ||
['Year', 'Sales', 'Expenses'], | ||
['2013', 1000, 400], | ||
['2014', 1170, 460], | ||
['2015', 660, 1120], | ||
['2016', 1030, 540] | ||
]; | ||
public area_ChartOptions = { | ||
title: 'Company Performance', | ||
hAxis: {title: 'Year', titleTextStyle: {color: '#333'}}, | ||
vAxis: {minValue: 0} | ||
}; | ||
} |
@@ -0,0 +0,0 @@ System.register(['angular2/platform/browser', './app.component'], function(exports_1, context_1) { |
@@ -0,0 +0,0 @@ import {bootstrap} from 'angular2/platform/browser'; |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ System.register(['angular2/core'], function(exports_1, context_1) { |
@@ -0,0 +0,0 @@ import {Directive,ElementRef,Input,OnInit} from 'angular2/core'; |
{ | ||
"name": "angular2-google-chart", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "google chart directive for angular2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ Angular2 |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
331891
2486
0