1 Star 0 Fork 1K

geyanwu / apollo

forked from ApolloAuto / apollo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
chart.proto 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
Xiangquan 提交于 2019-12-04 15:40 . Dreamview: clang-format protos.
syntax = "proto2";
package apollo.dreamview;
import "modules/common/proto/geometry.proto";
message Options {
message Axis {
optional double min = 1;
optional double max = 2;
optional string label_string = 3;
// size of the axis of your graph which is then divided into measuring
// grades
optional double window_size = 4;
// size of the smaller measuring grades in the axis found between two larger
// measuring grades
optional double step_size = 5;
// midpoint taken within the dataset. If it is not specified, we will
// calculate it for you.
optional double mid_value = 6;
}
optional bool legend_display = 1 [default = true];
optional Axis x = 2;
optional Axis y = 3;
// This is the aspect ratio (width/height) of the entire chart.
optional double aspect_ratio = 4;
// Same window size for x-Axis and y-Axis. It is
// effective only if x/y window_size is NOT set.
optional bool sync_xy_window_size = 5 [default = false];
}
message Line {
optional string label = 1;
optional bool hide_label_in_legend = 2 [default = false];
repeated apollo.common.Point2D point = 3;
// If the 'color' property is undefined, a random one will be assigned.
// See http://www.chartjs.org/docs/latest/charts/line.html
// for all supported properties from chart.js
map<string, string> properties = 4;
}
message Polygon {
optional string label = 1;
optional bool hide_label_in_legend = 2 [default = false];
repeated apollo.common.Point2D point = 3;
// If the 'color' property is undefined, a random one will be assigned.
// See http://www.chartjs.org/docs/latest/charts/line.html
// for all supported properties from chart.js
map<string, string> properties = 4;
}
message Car {
optional string label = 1;
optional bool hide_label_in_legend = 2 [default = false];
optional double x = 3;
optional double y = 4;
optional double heading = 5;
optional string color = 6;
}
message Chart {
optional string title = 1;
optional Options options = 2;
// data sets
repeated Line line = 3;
repeated Polygon polygon = 4;
repeated Car car = 5;
}
C++
1
https://gitee.com/geyanwu/apollo.git
git@gitee.com:geyanwu/apollo.git
geyanwu
apollo
apollo
master

搜索帮助