BoltBait Posted June 19, 2019 Share Posted June 19, 2019 BoltBait's Charts and Graphs Plugin v0.2 (Prerelease, Test Build) I quickly slapped this together because of this request. (There are probably issues. Give me feedback and I'll see if I can fix them.) It looks like this: You'll find it in the Effects > Render > Chart menu. Instructions: First, choose your chart type. Then, click the "Enter Data" button to enter your chart data. On the data entry screen, you can click the colors to change them and you can right-click on column titles to change those. Finally, tinker with your other options and click the OK button to finalize your chart image. Important: Remember to click the "Save Data" button to save a copy of your chart data to an xml file. This file can then be used later when clicking the "Load Data" button to restore your chart options and data. This is the only way to save the format of your chart if you wish to come back later to make tweaks. Once you click OK, your chart is now a graphic and can't be edited. Limitations: This chart control is not designed to work with selections. I might add that later if users think it is important. The resulting chart is scaled to the size of your canvas. So, before running, set your canvas size to the size of graph you want and press Ctrl+D to close any selection you might have active. Download: Click the button to download the zip file which includes an installer. Download the zip file to your desktop, unzip both files to your desktop and run the installer. If successful, you can delete all the new files from your desktop. Download Paint.NET v4.3+ If you're using Paint.NET v4.3 (or higher), download the updated plugin here: https://forums.getpaint.net/topic/114530-boltbaits-charts-and-graphs-plugin-v02-updated-jun-22-2019/?tab=comments#comment-586630 Once all the bugs are worked out, I'll be adding this to my plugin pack. Source code: Spoiler Hahaha. No. I can't take credit for all of this... lots of it was written by @toe_head2001 and Microsoft for another project... but, I did get it working for Paint.NET. 5 1 Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
xod Posted June 19, 2019 Share Posted June 19, 2019 Very nice plugin! Thanks. First crash: Enter some data and click on Tuesday. Exception details: System.ArgumentException: Object must be of type Double. at System.Double.CompareTo(Object value) at System.Windows.Forms.DataGridViewRowCollection.RowComparer.CompareObjects(Object value1, Object value2, Int32 rowIndex1, Int32 rowIndex2) at System.Windows.Forms.DataGridViewRowCollection.RowArrayList.Pivot(Int32 left, Int32 center, Int32 right) at System.Windows.Forms.DataGridViewRowCollection.RowArrayList.CustomQuickSort(Int32 left, Int32 right) at System.Windows.Forms.DataGridViewRowCollection.Sort(IComparer customComparer, Boolean ascending) at System.Windows.Forms.DataGridView.SortInternal(IComparer comparer, DataGridViewColumn dataGridViewColumn, ListSortDirection direction) at System.Windows.Forms.DataGridView.OnColumnHeaderMouseClick(DataGridViewCellMouseEventArgs e) at System.Windows.Forms.DataGridView.OnMouseClick(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 19, 2019 Author Share Posted June 19, 2019 Ah, I see, it is happening when you try to sort the rows of data by clicking on the column title. This happens because there is a blank cell in that column. EDIT: @xod This error is now prevented. Redownload. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
BoltBait Posted June 19, 2019 Author Share Posted June 19, 2019 18 minutes ago, welshblue said: Crash with choosing Stacked Bar option in 3D mode ... This happened because you added a data entry row, but didn't add any data on that row. Like this: I'll fix this later. 1 Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
BoltBait Posted June 20, 2019 Author Share Posted June 20, 2019 I’ll prevent that error in the next build. But, I’m traveling for the next few days. At least you know how to avoid the error in the mean time. EDIT: I just started digging into the code on this issue... ugh... this might take a while. I will probably take out the preview on the data entry screen. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
BoltBait Posted June 23, 2019 Author Share Posted June 23, 2019 On 6/19/2019 at 12:14 PM, welshblue said: Crash with choosing Stacked Bar option in 3D mode ... OK, I prevented that crash... ...by removing the Stacked Bar graph type. 1 Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Rick Brewster Posted August 9, 2021 Share Posted August 9, 2021 Looks like this needs an update for .NET 5. You can use the System.Windows.Forms.DataVisualization nuget package, and then install its DLL and the BBChart.dll to a folder inside Effects. 1 Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
BoltBait Posted September 24, 2021 Author Share Posted September 24, 2021 On 8/9/2021 at 9:15 AM, Rick Brewster said: Looks like this needs an update for .NET 5. Here's the update for .NET 5 and Paint.NET v4.3: BBChart11.zip Unzip this file to your desktop, then move the BBChart directory (including the 3 dll files inside) to your Paint.NET Effects directory. 2 1 Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.