Search found 47 matches

by jzarech
Sun May 05, 2024 3:26 am
Forum: .NET
Topic: Programmatic Chart Creation and Saving to Disk
Replies: 0
Views: 21

Programmatic Chart Creation and Saving to Disk

Hi Fellow TChart Devs, I was curious if there's an example of programmatically generating charts using TChart.Net then saving chart pic to a disk file. In other words to use in an API without WinForms. I searched here and on YouTube and didn't find anything. It would save me a lot of time. Thanks, ja
by jzarech
Wed Aug 03, 2022 6:17 pm
Forum: .NET
Topic: Set Axis and Zoom in Form Load Wonky
Replies: 3
Views: 4415

Re: Set Axis and Zoom in Form Load Wonky

Hi Marc, I tried the AfterDraw code change you suggested and the Zoom still doesn't work. I tried messing around a little bit with UndoZoom first and DoEvents but still no Zoom using AfterDraw. I've attached my code in case that's helpful and have the whole VS 2019 Project with just the repro code i...
by jzarech
Mon Aug 01, 2022 3:57 pm
Forum: .NET
Topic: Set Axis and Zoom in Form Load Wonky
Replies: 3
Views: 4415

Re: Set Axis and Zoom in Form Load Wonky

I will give this a try. Thanks very much Marc!
by jzarech
Sun Jul 31, 2022 8:00 am
Forum: .NET
Topic: Set Axis and Zoom in Form Load Wonky
Replies: 3
Views: 4415

Set Axis and Zoom in Form Load Wonky

Hi Steema - I'm building an app and trying to set the TChart Axes and Zoom during form Load - The Set Axes works but not the Zoom - But if I set the Axes and Zoom with the same code from buttons on the form once loaded it works. I'm sure it's an event sequencing issue of some sort but can't figure i...
by jzarech
Tue Jul 19, 2022 8:46 pm
Forum: .NET
Topic: Read Zoomed Values
Replies: 2
Views: 4583

Re: Read Zoomed Values

Thanks, I will try this.
by jzarech
Sat Jun 18, 2022 12:42 pm
Forum: .NET
Topic: Read Zoomed Values
Replies: 2
Views: 4583

Read Zoomed Values

Hi Steema,

When I zoom into a chart I'd like to get the zoomed MinX , MinY, MaxX, and MaxY values and thought it would be in the Zoomed event but am finding it challenging to figure this out. Please see attached screenshots. I'm doing something wrong.

Thanks as always!
Joseph
by jzarech
Sun May 08, 2022 8:52 am
Forum: .NET
Topic: Iterate through Chart and Scrape Bollinger Upper, Lower, and Middle Band Values???
Replies: 2
Views: 4817

Iterate through Chart and Scrape Bollinger Upper, Lower, and Middle Band Values???

Hi Steema Techs,

I would like to iterate through all the Values on a chart and Scrape the Bollinger Values for Upper, Lower, and Middle band as well as Date.

Do you have any sample code anywhere that shows how to do this?

I only see X and Y values.

Thanks so much,

Joseph
by jzarech
Thu Mar 10, 2022 4:28 pm
Forum: .NET
Topic: TChart for .NET Disappearing from Designer
Replies: 3
Views: 5046

Re: TChart for .NET Disappearing from Designer

I rebooted and the problem seems to have disappeared. Apparently my system was flaky — thanks, as always, for your lightning support!
by jzarech
Thu Mar 10, 2022 9:44 am
Forum: .NET
Topic: TChart for .NET Disappearing from Designer
Replies: 3
Views: 5046

TChart for .NET Disappearing from Designer

My TChart keeps disappearing from the Designer in Visual Studio 2022 Community Edition whenever I close the Designer and ReOpen it. I'm running .NET 5.0 framework. I've used TChart for years and have never seen this behavior. Any ideas on how to make the chart stay put? Thanks, Joseph https://i.post...
by jzarech
Mon Nov 09, 2020 6:16 pm
Forum: .NET
Topic: Programmatically Creating DrawLineItem Error Null Handles Exception
Replies: 3
Views: 10380

Re: Programmatically Creating DrawLineItem Error Null Handles Exception

Christopher - u r correct! I feel dumb for missing the constructor that takes the drawline object as a param.
fixed.gif
fixed.gif (60.87 KiB) Viewed 10367 times
Thanks soooooo much!!!
by jzarech
Mon Nov 09, 2020 7:52 am
Forum: .NET
Topic: Programmatically Creating DrawLineItem Error Null Handles Exception
Replies: 3
Views: 10380

Programmatically Creating DrawLineItem Error Null Handles Exception

I'm adding DrawLineItems to the Lines collection and that's fine -- Until the chart tries to refresh and throws an exception because all the "Handles" fields such as EndHandle, MidlleBottomHandle, MiddleTopHandle, and Starthandle are Null so a NullReferenceException is thrown. My question is how to ...
by jzarech
Wed Nov 04, 2020 9:38 am
Forum: .NET
Topic: DrawLineItem
Replies: 2
Views: 8248

Re: DrawLineItem

Figured it out --
Here's the code --
drawlinessolution.gif
drawlinessolution.gif (29.82 KiB) Viewed 8229 times
by jzarech
Tue Nov 03, 2020 4:29 pm
Forum: .NET
Topic: DrawLineItem
Replies: 2
Views: 8248

DrawLineItem

Hi All -- Love the DrawLines class never used it before. I have a list on the screen where I have a list of DrawLineItems on chart. I want to be able to click on a line item in my list and have that line become "selected" on the chart -- as if I clicked on the line itself. Is there some way to do th...
by jzarech
Wed Dec 05, 2018 8:36 am
Forum: .NET
Topic: How do you set the color of chart "drawing" area???
Replies: 2
Views: 10770

Re: How do you set the color of chart "drawing" area???

I spent hours on this! Thanks very much!!!