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:
Bjorn Terelius
2019-07-24 11:42:53 +02:00
committed by Commit Bot
parent 46bbdec1ab
commit 54d9602fe1
5 changed files with 32 additions and 0 deletions

View File

@ -13,6 +13,11 @@ message DataSet {
bool highlight_points = 5;
}
message TickLabel {
float value = 1;
string label = 2;
}
message Chart {
repeated DataSet data_sets = 1;
float xaxis_min = 2;
@ -23,6 +28,7 @@ message Chart {
string yaxis_label = 7;
string title = 8;
string id = 9;
repeated TickLabel yaxis_tick_labels = 10;
}
message ChartCollection {