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

Unified Diff: charted/lib/charts/chart_legend.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months 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 | « charted/lib/charts/chart_events.dart ('k') | charted/lib/charts/chart_renderer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: charted/lib/charts/chart_legend.dart
diff --git a/charted/lib/charts/chart_legend.dart b/charted/lib/charts/chart_legend.dart
deleted file mode 100644
index a55a9182e24a10d0be5bf4ad68287f25805aab7e..0000000000000000000000000000000000000000
--- a/charted/lib/charts/chart_legend.dart
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// Copyright 2014 Google Inc. All rights reserved.
-//
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file or at
-// https://developers.google.com/open-source/licenses/bsd
-//
-
-part of charted.charts;
-
-///
-/// Interface that is implemented by classes that support
-/// displaying legend.
-///
-abstract class ChartLegend {
- /// Title of the legend, dynamically updates the legend title when set.
- String title;
-
- /// Called by [ChartArea] to notify changes to legend.
- update(Iterable<ChartLegendItem> legend, ChartArea chart);
-
- /// Called by [ChartArea] to dispose selection listeners.
- dispose();
-
- /// Factory to create an instance of the default implementation.
- factory ChartLegend(Element host,
- {maxItems: 0, title: '', showValues: false}) =>
- new DefaultChartLegendImpl(host, maxItems, showValues, title);
-}
-
-///
-/// Class representing an item in the legend.
-///
-class ChartLegendItem {
- /// Index of the row/column in [ChartData]. Legend uses column based coloring
- /// in [CartesianArea] that has useRowColoring set to false and row based
- /// coloring in all other cases.
- int index;
-
- /// HTML color used for the row/column in chart
- String color;
-
- /// The label of the item.
- String label;
-
- /// Description of the item.
- String description;
-
- /// Pre-formatted value to use as value.
- String value;
-
- /// List of series that this column is part of
- Iterable<ChartSeries> series;
-
- ChartLegendItem({this.index, this.color,
- this.label, this.description, this.series, this.value});
-}
« no previous file with comments | « charted/lib/charts/chart_events.dart ('k') | charted/lib/charts/chart_renderer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698