Add y-axis tick labels.
This is intended to by used for visualizing catagorical data, i.e. mapping numerical enum values to string labels. Bug: webrtc:10623 Change-Id: Ic9c3da9a3874f479c07412f394a774ae90fd3d7e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/145408 Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28656}
This commit is contained in:
committed by
Commit Bot
parent
46bbdec1ab
commit
54d9602fe1
@ -60,6 +60,12 @@ void ProtobufPlot::ExportProtobuf(webrtc::analytics::Chart* chart) {
|
||||
chart->set_yaxis_label(yaxis_label_);
|
||||
chart->set_title(title_);
|
||||
chart->set_id(id_);
|
||||
|
||||
for (const auto& kv : yaxis_tick_labels_) {
|
||||
webrtc::analytics::TickLabel* tick = chart->add_yaxis_tick_labels();
|
||||
tick->set_value(kv.first);
|
||||
tick->set_label(kv.second);
|
||||
}
|
||||
}
|
||||
|
||||
ProtobufPlotCollection::ProtobufPlotCollection() {}
|
||||
|
||||
Reference in New Issue
Block a user