这是我想用 flot 绘制的数据(jquery 库)
其中动作在 x 轴上,计数在 y 轴上
var data= [{"action":"QUERY INSURANCE","count":"9"},{"action":"QUERY POLICE DETAILS","count":"15"},{"action":"QUERY VEHICLE DETAILS","count":"3"},{"action":"CIVILIAN DETAILS","count":"1"},{"action":"LOGGING IN","count":"59"},{"action":"Report Occurrence","count":"1"},{"action":"QUERY CRIMINAL RECORDS","count":"2"},{"action":"QUERY VEHICLE OFFENCES","count":"2"},{"action":"QUERY DL VALIDITY","count":"5"},{"action":"REPORT OCCURRENCE","count":"23"}];
$.plot($("#plotrr"), [
{
data: data,
bars: { show: true }
}]);
如何在 x 轴上显示“动作”,在 y 轴上显示“计数”