3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
7 <link rel="import" href="/base/ui/bar_chart.html">
11 tv.unittest.testSuite(function() {
12 test('singleSeries', function() {
13 var chart = new tv.ui.BarChart();
16 chart.chartTitle = 'Chart title';
18 {label: 'a', value: 100},
19 {label: 'b', value: 40},
20 {label: 'c', value: 20}
22 chart.setDataAndXLabelKey(data, 'label');
23 this.addHTMLOutput(chart);
26 test('twoSeries', function() {
27 var chart = new tv.ui.BarChart();
30 chart.chartTitle = 'Chart title';
32 {label: 'a', value1: 100, value2: 50},
33 {label: 'b', value1: 75, value2: 10},
34 {label: 'c', value1: 50, value2: 125}
36 chart.setDataAndXLabelKey(data, 'label');
37 this.addHTMLOutput(chart);