1
這是我想和海軍報繪製數據(jQuery庫)海軍報x軸作爲字符串
採取行動時,在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軸上的「計數」
你看過'flot' [API文檔](http://people.iola.dk/olau/flot/API.txt)嗎? –
是的,我可能不夠好,但我沒有得到如何從那裏做到這一點 – kmarima