If you'd like, I can take a look at the code and make some recommendations? After testing today, I noticed there are no ControlCommands published for the cheat sheet. It would be easier to use if it showed on the Cheat Sheet the available commands.
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?
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
@DJ Wow! I wish you worked at my day job... well kinda not then there wouldn't be a EZ Robot. I've been doing almost exclusively web programming for the last 6 years I seriously need a refresher on winforms dev.
@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.
Ah, that make sense why the variables and find control was used. I took those notes while changing in case there was interest in what changes I was making. Didn't want to change your program without telling you, that wouldn't benefit either of us.
If you have any questions about the things I changed, ask away!
Also i should add - if you edit your Plugin.xml in the source i gave you, i would recommend changing the category to "Graphs" instead of Misc.
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
I believe I have a correct plug files uploaded. Tried installing from scratch and all was good. Welcome to version 1. Let me know if you have any issues.
:) awesome! I was working on ARC last night with the auto-update for plugin feature. Fell asleep on my keyboard watching Moonbeam City. Most likely finish it tonight.
I recommend moonbeam city btw. Discovered it last night and it's great!
Woohoo! That is awesome! Nice work dude. You're a real quick learner.
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.
Nice work @leversofpower.... I can use this as a graphical monitor for my ezb and roomba battery voltages.... It would also be awesome to use if you had 3 or 4 pings across the front or around your robot in order to monitor various distances....
Could you explain a little more of just what this does, please.
Excellent, I'll take a look when I get home!
Herr ball, you can find more info here: https://synthiam.com/redirect/legacy?table=plugin&id=36
I'm not sure the plugin is right. It shows Cats and Dogs and does not change value of when the example script changes the variables.
Hmm. Will look into it asap. Thanks for letting me know.
If you'd like, I can take a look at the code and make some recommendations? After testing today, I noticed there are no ControlCommands published for the cheat sheet. It would be easier to use if it showed on the Cheat Sheet the available commands.
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?
Here you go - I tweaked your project and made some changes, including new functionality to Add/Remove/Rename series.
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]
@DJ Wow! I wish you worked at my day job... well kinda not then there wouldn't be a EZ Robot. I've been doing almost exclusively web programming for the last 6 years I seriously need a refresher on winforms dev.
@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.
Ah, that make sense why the variables and find control was used. I took those notes while changing in case there was interest in what changes I was making. Didn't want to change your program without telling you, that wouldn't benefit either of us.
If you have any questions about the things I changed, ask away!
Also i should add - if you edit your Plugin.xml in the source i gave you, i would recommend changing the category to "Graphs" instead of Misc.
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.
Notes:
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
The size is 128x128 - if you upload a different size, it will be resized. I'll add that to the notes.
I believe I have a correct plug files uploaded. Tried installing from scratch and all was good. Welcome to version 1. Let me know if you have any issues.
Thanks DJ for pressing the turbo button.
:) awesome! I was working on ARC last night with the auto-update for plugin feature. Fell asleep on my keyboard watching Moonbeam City. Most likely finish it tonight.
I recommend moonbeam city btw. Discovered it last night and it's great!
Love it @leversofpower ! Awesome job! Thank you for creating and sharing this!
I'm really excited about being able to contribute to such a great community.
I just uploaded a more polished version and you can now change the colors of the bars in the series.
Woohoo! That is awesome! Nice work dude. You're a real quick learner.
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.
Just used your plugin - i like the color change. I have a suggestion for the RGB values.
Currently they are specified in a string...
It would increase versatility if each color was specified separately like so...
Because then you could do this...
Great, idea. For some strange reason I think I took the more obtuse way doing that by using a string. Will do for next release.
awesome - looking forward to it! I've been using the graph control for visualization.
Any idea if you will be making a historical line graph in the future?
Nice work @leversofpower.... I can use this as a graphical monitor for my ezb and roomba battery voltages.... It would also be awesome to use if you had 3 or 4 pings across the front or around your robot in order to monitor various distances....