C
C#2y ago
Warren

❔ Why "Chart" is not available ?

Hi, as you can see on my screens, the "Chart" are not available, i can't drag them directly on my Form, but i can add a Chart manually, why ?
58 Replies
Mayor McCheese
Is your application running?
Warren
WarrenOP2y ago
yes but it's not very practical because i want to place 4 of them in precise places, i was wondering if it was possible to drag them instead like other elements
Mayor McCheese
You possibly can't add them to a form while your application is running?
Warren
WarrenOP2y ago
ahhh is my application running while i try to drag them ? no xd sorry i didn't understand it that way
Mayor McCheese
Application running == F5 debugging
Warren
WarrenOP2y ago
so no it's not running i can drag other elements like label, button or anything but not this
Mayor McCheese
If you add a new blank form then can you drag it on? I wonder if chart needs a container of some sort?
Warren
WarrenOP2y ago
no i still can't like a panel ?
Mayor McCheese
What version of .net are you using?
Warren
WarrenOP2y ago
.NET 6.0
Mayor McCheese
Something like that possibly, but I doubt that is the problem
Warren
WarrenOP2y ago
yeah i tried but it changed nothing
Mayor McCheese
Are you certain this is winforms tool and not webforms tool? You seem like you can't add anything Everything looks disabled in the image
Warren
WarrenOP2y ago
it's because i selected "show everything" it shows even what i can't drag but i can drag things
Warren
WarrenOP2y ago
i selected this for the project
Warren
WarrenOP2y ago
look the rest is fine
Mayor McCheese
switching to my PC; I'll try locally
Warren
WarrenOP2y ago
okay thanks
Mayor McCheese
hmmm I don't have chart at all, is that from a separate control suite?
Warren
WarrenOP2y ago
yeah i added System.Windows.Forms.DataVisualization in NuGet packages
Mayor McCheese
hmmm still no chart
Warren
WarrenOP2y ago
maybe rebuild the project ?
Mayor McCheese
nothing, it's also a bit concerning that you have two chart controls
Warren
WarrenOP2y ago
i agree, i don't really know why either and i don't really understand why it is so difficult just to make a chart honestly :x i tried LiveChart too but it didn't work at all, at least with that i can have something so i think i'll keep going on with it
Mayor McCheese
I'm finding some ugliness that hints that this isn't available in .net/core but only framework
Warren
WarrenOP2y ago
maybe, but this is the only way i found after hours of research honestly thought it'd be less difficult to make a chart
Mayor McCheese
but this is .net framework
Warren
WarrenOP2y ago
i have this with some tests
Warren
WarrenOP2y ago
Warren
WarrenOP2y ago
honestly the result doesn't seem bad, but i was just wondering if they were a better way
Mayor McCheese
I can't answer that
Warren
WarrenOP2y ago
np
Mayor McCheese
I haven't used data viz in winforms ever 😦
Warren
WarrenOP2y ago
Have you made a chart with an other way ?
Mayor McCheese
usually web
Warren
WarrenOP2y ago
ah okay
Mayor McCheese
wpf
Warren
WarrenOP2y ago
Thanks for you help, i think i'll keep going on like that even if it's not that practical for the moment it'll do the job
Mayor McCheese
Practicality always wins There may be some "free" control suites out there too
Warren
WarrenOP2y ago
wdym by that ?
Mayor McCheese
There are control vendors, like telerik ( example not a recommendation ) that cover a lot of gaps in winforms controls
Warren
WarrenOP2y ago
oh okay, that may help i'll look into it
Mayor McCheese
Syncfusion
WinForms Chart Control | Blazing Fast Graph | Syncfusion
WinForms Chart (WinForms Graph) library can plot more than 45 chart types such as line, pie, area, bar, etc. It supports zooming and scrolling interactions.
Mayor McCheese
But not free either 😦
Warren
WarrenOP2y ago
yes i imagine
Mayor McCheese
https://gunaui.com/pricing/ I've heard gunaui is okay, but not sure
Warren
WarrenOP2y ago
i'll try to find out something thanks for that
Mayor McCheese
I wish I had better answers for you
Warren
WarrenOP2y ago
there is no problem, i searched for alternative, not necesseraly something perfect
Mayor McCheese
I'm still not certain why you have two chart icons ( this can happen with different versions iirc )
Warren
WarrenOP2y ago
one of them is useless, it's not for windowsform i think
Mayor McCheese
Ah yeah, that's why I was asking about the web
Warren
WarrenOP2y ago
i must have installed it while trying to install the right one
Mayor McCheese
That was my first instinct because the toolbox can get pretty mixed up
Warren
WarrenOP2y ago
I just managed to find a nice package for .net 6.0, ScottPlot.WinForms, looks pretty simple and efficient
Warren
WarrenOP2y ago
and access to the drag so perfect
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server