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

Side by Side Diff: packages/charted/lib/charts/chart_series.dart

Issue 1521693002: Roll Observatory deps (charted -> ^0.3.0) (Closed) Base URL: https://chromium.googlesource.com/external/github.com/dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 // 1 //
2 // Copyright 2014 Google Inc. All rights reserved. 2 // Copyright 2014 Google Inc. All rights reserved.
3 // 3 //
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at 5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd 6 // https://developers.google.com/open-source/licenses/bsd
7 // 7 //
8 8
9 part of charted.charts; 9 part of charted.charts;
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 Iterable<int> measures; 47 Iterable<int> measures;
48 48
49 /// Instance of the renderer used to render the series. 49 /// Instance of the renderer used to render the series.
50 /// 50 ///
51 /// [ChartArea] creates a renderer using [ChartRender.create] and uses it 51 /// [ChartArea] creates a renderer using [ChartRender.create] and uses it
52 /// to compute range of the measure axis and to render the chart. 52 /// to compute range of the measure axis and to render the chart.
53 ChartRenderer renderer; 53 ChartRenderer renderer;
54 54
55 /// Factory function to create an instance of internal implementation of 55 /// Factory function to create an instance of internal implementation of
56 /// [ChartSeries]. 56 /// [ChartSeries].
57 factory ChartSeries(String name, Iterable<int> measures, 57 factory ChartSeries(
58 ChartRenderer renderer, { Iterable<String> measureAxisIds : null }) => 58 String name, Iterable<int> measures, ChartRenderer renderer,
59 new DefaultChartSeriesImpl(name, measures, renderer, measureAxisIds); 59 {Iterable<String> measureAxisIds: null}) =>
60 new DefaultChartSeriesImpl(name, measures, renderer, measureAxisIds);
60 } 61 }
61 62
62
63 /// 63 ///
64 /// Implementation of [ChangeRecord] that is used to notify changes to 64 /// Implementation of [ChangeRecord] that is used to notify changes to
65 /// [ChartSeries]. Currently, only changes to measures and measureAxisIds 65 /// [ChartSeries]. Currently, only changes to measures and measureAxisIds
66 /// are supported. 66 /// are supported.
67 /// 67 ///
68 class ChartSeriesChangeRecord implements ChangeRecord { 68 class ChartSeriesChangeRecord implements ChangeRecord {
69 /// Reference to series that changed 69 /// Reference to series that changed
70 final ChartSeries series; 70 final ChartSeries series;
71 71
72 const ChartSeriesChangeRecord(this.series); 72 const ChartSeriesChangeRecord(this.series);
73 } 73 }
OLDNEW
« no previous file with comments | « packages/charted/lib/charts/chart_legend.dart ('k') | packages/charted/lib/charts/chart_state.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698