Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: pkg/js/example/chart.dart

Issue 1449053004: pkg/js: moved example code to https://github.com/google/chartjs.dart/ (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: nits Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/js/example/README.md ('k') | pkg/js/example/chart_js_example.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/js/example/chart.dart
diff --git a/pkg/js/example/chart.dart b/pkg/js/example/chart.dart
deleted file mode 100644
index fc4b9e1ba752b3e5da0a4abff9d66de04dd8b928..0000000000000000000000000000000000000000
--- a/pkg/js/example/chart.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library chart;
-
-import 'dart:html';
-import 'package:js/js.dart';
-
-@JS()
-class Chart {
- external Chart(CanvasRenderingContext2D ctx);
-
- external dynamic Line(Data data, Options options);
-}
-
-@JS()
-@anonymous
-class Data {
- external List get labels;
- external List<DataSet> get datasets;
-
- external factory Data({List<String> labels, List<DataSet> datasets});
-}
-
-/// Minimal implementation of dataset for line chart
-///
-/// http://www.chartjs.org/docs/#line-chart-data-structure
-@JS()
-@anonymous
-class DataSet {
- external String get label;
- external String get fillColor;
- external String get strokeColor;
- external String get pointColor;
- external String get pointStrokeColor;
- external String get pointHighlightFill;
- external String get pointHighlightStroke;
-
- external List<num> get data;
-
- external factory DataSet(
- {String label,
- String fillColor,
- String strokeColor,
- String pointColor,
- String pointStrokeColor,
- String pointHighlightFill,
- String pointHighlightStroke,
- List<num> data});
-}
-
-/// Minimal implementation of options
-///
-/// http://www.chartjs.org/docs/#getting-started-global-chart-configuration
-@JS()
-@anonymous
-class Options {
- external bool get responsive;
-
- external factory Options({bool responsive});
-}
« no previous file with comments | « pkg/js/example/README.md ('k') | pkg/js/example/chart_js_example.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698