Asked
— Edited
First plugin. Check the plug in's section. Let me know if you can use it.
EZ Chart
EZChart.zip
First plugin. Check the plug in's section. Let me know if you can use it.
EZ Chart
EZChart.zip
Herr ball, you can find more info here: https://synthiam.com/redirect/legacy?table=plugin&id=36
Also I received an error about a series1 not existing - and it was in the form of a messagebox - even though the series1 is already in the example posted.
Do you want me to take a look, modify and report the source here for you with my recommendations?
Source Code: EZChart-src.zip
Give it a try and see if you like it - publish if you do
Changes:
[feature]
changed the chart object to dock with the form so it can be resized
changed the form to be resiable so users can resize it
removed decleration of MyForm since it is the form
moved settings the chart series data into a delegate that only calls if invoke is required
removed the private variables from being static - since there may be more than one instance of this control
removed class scope variables for chart series since they are only referenced once
added constants for the series name so the string will always be the same throughout the code
removed reference to "Find the chart1" since chart1 is always available because it's in the form
renamed the barchart on the form to BarChart
added conditions in the SendCommand for each series (windowsCommand) with messagebox displayed if windowcommand is incorrect. normally this would use the .EQUALS with a stringcomparison type of case insensitive comparison - but since the chart series is case sensitive, i added a message if the series wasn't found to check the case sensitivity
the messagebox for errors displays the name of the control in the error message for userfriendliness
added the cheatsheet to return each series option that can be specified
changed the output build folder to be c:\users.. instead of c:\public.. because my machine puts the public folder in the c:\users
added the ability to rename the title of the chart
added ability to add new series
added ability to remove series
added ability to rename series
added a bunch of syntax checking
[/feature]
@JustinRatliff I think in my mad rush, with a head cold, to get the plug in published I somehow uploaded an early version .dll and not the current one. The zip plug in upload requirement combined with windows send to compressed folder was causing me grief. Also, initially I thought the whole solution had to be uploaded for the plugin project section. I thought for some reason EZrobot was housing the project as a repository of code as well. I now believe it is just the .dll and xml for the plug in.
I'm guessing Github is the intended location for the plug in source code/project.
If you have any questions about the things I changed, ask away!
Additionally, add a Title.png or Title.jpg to the project and include it in the plugin Archive so the control has an icon rather than using the default plugin icon.
Changed plugin.xml tag
<VersionRelease>1</VersionRelease>
to version 1
<CATEGORY_TYPE>Graphs</CATEGORY_TYPE>
causes a new category button to appear in ARC called "Graphs"
Title.png - 128x128 suggested plugin control image size in ARC.
Three files need to be in the plugin .zip archive upload
yourpluginname.dll
Title.png
plugin.xml
Thanks DJ for pressing the turbo button.
I recommend moonbeam city btw. Discovered it last night and it's great!
I just uploaded a more polished version and you can now change the colors of the bars in the series.
Wonder where wbs has been? He's also a great community candidate for creating plugins.
Did you see the sort array plugin that u made for Bob? I published the source code. You might be interested to see how I accessed variables from the ezscript engine.
Currently they are specified in a string...
Code:
It would increase versatility if each color was specified separately like so...
Code:
Because then you could do this...
Code:
Any idea if you will be making a historical line graph in the future?