Charts with Dashboard Designer
-
Hi
Wondering if someone can help me see where I am going wrong.
I making some charts with the dashboard designer but cannot get it quite right.
This below:
<ma-get-point-value id="1910cf58-10f5-4c5d-8ad8-7a181fc67c79" style="position: absolute; left: 30px; top: 0px;" point-xid="terrPlaceDP_ff2387e8-1649-45b2-b182-9c6d4077e665" point="coldFlowRatePoint"></ma-get-point-value> <ma-point-values id="02dad12c-b1ac-43f5-959d-dbcc3363d643" point="coldFlowRatePoint" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals + ' ' + dateBar.rollupIntervalPeriod}}" style="position: absolute; left: 310.422px; top: 0px;" values="coldFlowRateValue" point-xid="lvl"></ma-point-values> <ma-serial-chart id="363aca3d-dd20-45b6-9a26-63aa4109ee11" style="position: absolute; width: 400px; height: 340px; left: 30px; top: 95px; border-width: 2px; border-color: rgb(14, 13, 13);" point="coldFlowRatePoint" default-color="#351fcd" legend="true" series1-point="coldFlowRatePoint" series1-value="coldFlowRateValue" series1-color="#df2525" series1-axis="Left" values="coldFlowRateValue" series1-values="coldFlowRateValue"></ma-serial-chart>
Creates this:
But I feel lik eI have it all correct??? I have tried many different ways to get the chart up but no cigar..
Thanks in advance.
-
@pikey4 said in Charts with Dashboard Designer:
<ma-serial-chart id="363aca3d-dd20-45b6-9a26-63aa4109ee11" style="position: absolute; width: 400px; height: 340px; left: 30px; top: 95px; border-width: 2px; border-color: rgb(14, 13, 13);" point="coldFlowRatePoint" default-color="#351fcd" legend="true" series1-point="coldFlowRatePoint" series1-value="coldFlowRateValue" series1-color="#df2525" series1-axis="Left" values="coldFlowRateValue" series1-values="coldFlowRateValue"></ma-serial-chart>
You've got some misstypes:
-
use only points and values OR series-x-point and series-x-values which brings me to..
-
series1-point="coldFlowRatePoint" series1-value="coldFlowRateValue" series1-color="#df2525" series1-axis="Left" values="coldFlowRateValue" series1-values="coldFlowRateValue" need a '-' between the series and 1
-
if you are using charts, you only require the point and the <ma-point-values> directive.
Edit 4)
Why are you mixing points with values??? Use either a point list or point query and assign that to a point attribute which can be inserted into the series-1-point attribute. OR Just supply the series-1-values attribute and supply the point information with series-1-title and series-1-ballon-text.I strongly recommend you peruse the mango API notes under API Docs -> components -> maSerialChart and the likes. It will give you the info you need to construct the dashboards you require. If you cannot see API docs, turn it on under Administration -> edit Menu
-
-
Thanks @MattFox for taking the time to assist,
The misstypes you identified, i did not notice so thank you. It looks like it came from the dashboard designer itself;
But placing a '-' doesn't rectify anything.
I took a closer look at how I was mixing 'point' and 'values' you mentioned. You're absolutely right it was just me over cooking things.
In any case, managed to copy some text from an example chart and alter it to my requirements. I still can't see where the issue was in the first place but perhaps some bug with using the designer?? Or just another miss-type that I could not find.
You Also mentioned the 'API docs' which I have had a look at, but to be honest I am still at Kindy with my training wheels with this stuff so It's the long way round for me until I find someone that knows what there doing.
But it's fun as well, so all good.
Thanks again for you help, really appreciate it.
-
Happy to help where I can, I've had more than my fair share of err.. intriguing intricacies with the amcharts stuff.
If you have any questions, I don't mind the occasional chat message to help you get in the right direction. You'll generally find though that a lot of questions you may have are already here in the forums.
Good LuckFox