Search found 1056 matches

by Marc
Fri Aug 12, 2022 7:57 am
Forum: .NET
Topic: Remove text after drawing 2D text on canvas
Replies: 1
Views: 39

Re: Remove text after drawing 2D text on canvas

Hello, Everything in OnAfterDraw is called every time the Chart is rendered. If you put boolean conditions in there, like: if myCondition runCustomDrawCode end if then you can control i t being called by setting the condition to true or false ... Calling Chart.Repaint causes the chart to render and ...
by Marc
Thu Aug 11, 2022 10:06 am
Forum: .NET
Topic: Responsive (auto-size) charting in .NET website project
Replies: 3
Views: 35

Re: Responsive (auto-size) charting in .NET website project

Hello, The resize can be fully automated if the render format is javascript. I've added resize code to the Line example here: https://github.com/Steema/TeeChart-NET-Pro-Samples/blob/main/Web-API/NET%20Framework/TeeChart%20WebDemo/Interacting%20with%20Charts/JScript-HTML5%20Live%20Charts/JLineChart.a...
by Marc
Mon Aug 08, 2022 4:14 pm
Forum: VCL
Topic: Still cannot use palette tool
Replies: 13
Views: 6706

Re: Still cannot use palette tool

Hello, I have tried this in a new environment. Runs ok. Is it possible that your test machines are running security software that may be inhibiting the creation of windows objects/handles? Perhaps running the example across several machines may give a hint by more easily identifying what machines ge...
by Marc
Mon Aug 08, 2022 10:13 am
Forum: VCL
Topic: Error: Control 'Chart1' has no parent window
Replies: 1
Views: 375

Re: Error: Control 'Chart1' has no parent window

Hello, I can't reproduce this problem straight-off. I created a new VCL Forms project in RAD Studio 11 using TeeChart v2022.34.220329 and added a Bar and FastLine Series using the Editor. I then set the Fastline datasource to Function:Average and the source as Series1. I ran the project and it compi...
by Marc
Wed Aug 03, 2022 11:23 am
Forum: .NET
Topic: Disposing of TChart on Net 6
Replies: 2
Views: 369

Re: Disposing of TChart on Net 6

Hello,

No; if that works ok for you that's fine, ignore my recommendation. I've made a note of the issue I encountered as it may affect other projects with a different buffer setting.

Regards,
Marc
by Marc
Tue Aug 02, 2022 2:11 pm
Forum: VCL
Topic: Few different problems
Replies: 1
Views: 663

Re: Few different problems

Hello,

We have been able o reproduce point 2 and are working to resolve it.

Regards,
Marc Meumann
by Marc
Mon Aug 01, 2022 3:47 pm
Forum: .NET
Topic: TeeChart for .NET v2022 [14 JUL 2022] RELEASE 2022.7.14
Replies: 2
Views: 642

Re: TeeChart for .NET v2022 [14 JUL 2022] RELEASE 2022.7.14

hello, sorry, missed your post here. Thanks for the feedback; TeeChart is using a buffer that is still null and not checked-for when the chart is created and destroyed without a render. We'll fix it. In the meantime you'll need to create some kind of render, export a bitmap to a stream or similar, t...
by Marc
Mon Aug 01, 2022 3:36 pm
Forum: .NET
Topic: Set Axis and Zoom in Form Load Wonky
Replies: 3
Views: 256

Re: Set Axis and Zoom in Form Load Wonky

Hello, The chart needs to render before it can run the zoom on what would be the rendered dimensions. You could achieve that this way, removing the call to SetZoom from the initialisation code and adding a one-time call in the Chart OnAfterdraw event: bool hasLoaded = false; private void tChart1_Aft...
by Marc
Mon Aug 01, 2022 11:29 am
Forum: .NET
Topic: TeeChart HotspotTool Function
Replies: 2
Views: 258

Re: TeeChart HotspotTool Function

....there's a live example of that here:

http://www.steema.net/TeeChartForNET/In ... hart.aspx
by Marc
Mon Aug 01, 2022 11:17 am
Forum: .NET
Topic: TeeChart HotspotTool Function
Replies: 2
Views: 258

Re: TeeChart HotspotTool Function

Hello, There is some demo code here: https://github.com/Steema/TeeChart-NET-Pro-Samples/tree/main/Web-API/NET%20Framework/TeeChart%20WebDemo/Interacting%20with%20Charts/Drill%20Down/AggregationAndDrillDown That is a Pro project but the functionality/code is applicable to the standard version. Regard...
by Marc
Fri Jul 29, 2022 11:07 am
Forum: .NET
Topic: [WPF] Teechart Print
Replies: 12
Views: 628

Re: [WPF] Teechart Print

Hello Geomisure, In the sample code you sent, the multiplication (x 2) for the height has been omitted, hence the Charts are only filling half the page. ie. should be:; t1.Export.Image.PNG.Save(s1, t1.Bitmap((doc.PageWidth / 3 * 2), doc.PageHeight * 2), doc.PageWidth / 3, doc.PageHeight); t2.Export....
by Marc
Thu Jul 28, 2022 5:01 pm
Forum: .NET
Topic: [WPF] Teechart Print
Replies: 12
Views: 628

Re: [WPF] Teechart Print

Hello Geomisure, Re. for second option Are you referring to the use of this code? t1.Export.Image.PNG.Save(s1, t1.Bitmap((doc.PageWidth / 3 * 2), doc.PageHeight * 2), doc.PageWidth / 3, doc.PageHeight); t2.Export.Image.PNG.Save(s2, t2.Bitmap((doc.PageWidth / 3 * 2), doc.PageHeight * 2), doc.PageWidt...
by Marc
Wed Jul 27, 2022 4:25 pm
Forum: .NET
Topic: [WPF] Teechart Print
Replies: 12
Views: 628

Re: [WPF] Teechart Print

Hello Geomisure, I'll have a think about options. One might be to increase the resolution of the bitmap. You may need to up font sizes. ie. t1.Export.Image.PNG.Save(s1, t1.Bitmap((doc.PageWidth / 3 * 2), doc.PageHeight * 2), doc.PageWidth / 3, doc.PageHeight); t2.Export.Image ...etc Regards, Marc
by Marc
Wed Jul 27, 2022 3:23 pm
Forum: .NET
Topic: [WPF] Teechart Print
Replies: 12
Views: 628

Re: [WPF] Teechart Print

Hello Geomisure,

I'm not seeing an obvious reduction in quality. I attach the output obtained printing to pdf from your test project. Is this what you're expecting to see?

Thanks,
Marc
by Marc
Tue Jul 26, 2022 8:37 am
Forum: .NET
Topic: [WPF] Teechart Print
Replies: 12
Views: 628

Re: [WPF] Teechart Print

Hello Geomisure, I've been able to take a look at the code and run it. The settings here: Chart.Export.Image.Bitmap.Save(s1, Chart.Chart.Bitmap(doc.PageWidth / 3, doc.PageHeight), doc.PageWidth / 3, doc.PageHeight); Chart.Export.Image.Bitmap.Save(s2, Chart.Chart.Bitmap(doc.PageWidth / 3, doc.PageHei...