flot chart options not working with metronic -
so, downloaded theme metronic. took out of features don't need, put in portlet flot graph , pasted in data , options used graph when on script. reason, label axes don't show , times wrong on x axis. know why isn't working?
i believe metronic lacks flot-axislabels plugin default.
to axis labels working:
- navigate plugin directory
cd assets/global/plugins/flot/
- download plugin
curl -o https://raw.githubusercontent.com/markrcote/flot-axislabels/master/jquery.flot.axislabels.js
- add script html
<script src="assets/global/plugins/flot/jquery.flot.axislabels.js"></script>
the following config should display "hello world label" on x axis:
xaxis: { tickcolor: "#eee", ticks: 11, tickdecimals: 0, axislabel : "hello world label", axislabelusecanvas: true, axislabelfontsizepixels: 12, axislabelfontfamily: 'verdana, arial', axislabelpadding: 5, labelwidth: 200, labelheight: 20, reservespace: true },
Comments
Post a Comment