| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 if (series_list_[i].style == BAR_GRAPH) { | 34 if (series_list_[i].style == BAR_GRAPH) { |
| 35 data_set->set_style(webrtc::analytics::ChartStyle::BAR_CHART); | 35 data_set->set_style(webrtc::analytics::ChartStyle::BAR_CHART); |
| 36 } else if (series_list_[i].style == LINE_GRAPH) { | 36 } else if (series_list_[i].style == LINE_GRAPH) { |
| 37 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART); | 37 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART); |
| 38 } else if (series_list_[i].style == LINE_DOT_GRAPH) { | 38 } else if (series_list_[i].style == LINE_DOT_GRAPH) { |
| 39 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART); | 39 data_set->set_style(webrtc::analytics::ChartStyle::LINE_CHART); |
| 40 data_set->set_highlight_points(true); | 40 data_set->set_highlight_points(true); |
| 41 } else if (series_list_[i].style == LINE_STEP_GRAPH) { | 41 } else if (series_list_[i].style == LINE_STEP_GRAPH) { |
| 42 data_set->set_style(webrtc::analytics::ChartStyle::LINE_STEP_CHART); | 42 data_set->set_style(webrtc::analytics::ChartStyle::LINE_STEP_CHART); |
| 43 } else if (series_list_[i].style == DOT_GRAPH) { |
| 44 data_set->set_style(webrtc::analytics::ChartStyle::SCATTER_CHART); |
| 45 data_set->set_highlight_points(true); |
| 43 } else { | 46 } else { |
| 44 data_set->set_style(webrtc::analytics::ChartStyle::UNDEFINED); | 47 data_set->set_style(webrtc::analytics::ChartStyle::UNDEFINED); |
| 45 } | 48 } |
| 46 | 49 |
| 47 data_set->set_label(series_list_[i].label); | 50 data_set->set_label(series_list_[i].label); |
| 48 } | 51 } |
| 49 | 52 |
| 50 chart->set_xaxis_min(xaxis_min_); | 53 chart->set_xaxis_min(xaxis_min_); |
| 51 chart->set_xaxis_max(xaxis_max_); | 54 chart->set_xaxis_max(xaxis_max_); |
| 52 chart->set_yaxis_min(yaxis_min_); | 55 chart->set_yaxis_min(yaxis_min_); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 76 } | 79 } |
| 77 | 80 |
| 78 Plot* ProtobufPlotCollection::AppendNewPlot() { | 81 Plot* ProtobufPlotCollection::AppendNewPlot() { |
| 79 Plot* plot = new ProtobufPlot(); | 82 Plot* plot = new ProtobufPlot(); |
| 80 plots_.push_back(std::unique_ptr<Plot>(plot)); | 83 plots_.push_back(std::unique_ptr<Plot>(plot)); |
| 81 return plot; | 84 return plot; |
| 82 } | 85 } |
| 83 | 86 |
| 84 } // namespace plotting | 87 } // namespace plotting |
| 85 } // namespace webrtc | 88 } // namespace webrtc |
| OLD | NEW |