Jump to content
Software FX Community

brownhead

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by brownhead

  1. brownhead

    Clear Chart

    I'm trying to clear a populated chart so that it shows the No Data text. So I used the code ScanChart.Series.Clear();ScanChart.Points.Clear();ScanChart.Refresh(); This results in a very messed up chart. I've attatched a screenshot of it. How can I do this properly? AdditionalAxesAndPanes.zip
  2. It works now, thank you very much for all of your help.
  3. Ah, my mistake. Chart FX Version: 8.0.3155.18127
  4. My system spec: OS Name: Microsoft
  5. I've been able to ignore this problem and continue working, but its still a problem that needs to be fixed before release. Is there a known solution as of yet?
  6. By not working I mean a blank chart is exported. I have attached the exported image. The thread that the function is executing on is the main UI thread. Hope to hear back from you soon.
  7. I had actually send a Private Message directly to you using the forum. And creating a chart object then exporting it is not working for me. This is the code I'm using. (zChart is a reference to the original chart) ChartFX.WPF.Chart newChart = new ChartFX.WPF.Chart(); newChart.Width = newChart.Width = Math.Min(page.Width - 30, page.Height - tblEnd - 60); newChart.Style = ChartFX.WPF.Motifs.Basic.Style; newChart.ItemsSource = zChart.ItemsSource; // Export the chart to a png file newChart.Export(ChartFX.WPF.FileFormat.Png, tmpPath);
  8. I saw a post of yours that mentioned you had figured that out. I sent you a message about it yesterday. How would I go about doing that? Because that would be an excellant workaround.
  9. Perhaps I should clarify this. My question is how do I make the chart do a complete redraw (including adjusting to its new dimensions) synchronously. A function call that doesn't return until the operation is finished is more or less what I'm looking for. I desperatley need a solution for this and I haven't been able to find one.
  10. My program needs to be able to export the reports it creates into PDF files. I can make the PDF file just fine, but in order to add the Chart I need to save the Chart as an image, preferably PNG. Now comes the trouble spot, the chart needs to be resized inside the export function in order for it to fit smoothly on the page. How can I do this without displaying the chart to the user? I'm having difficulty explaining this so perhaps an example will help public void ToPFD(string FileName, Chart zChart){ // PDF functions up above// Set the width and height of the chartzChart.Width = zChart.Height = Math.Min(pdfPage.Width - 30, pdfPage.Height - tblEnd - 60); /* I have tried calling Refresh(), all the Invalidate*() functions, * and anything else that seemed likely to work here. None of them * did. I believe because there Asynchronous.. I was trying to * put to sleep this thread and then interrupt it when the refresh * was done but I couldn't figure out what event was called when * the refresh was finished. */ // Export the chartzChart.Export(tmpFile); } Thanks for taking a look. Hope to resolve this problem soon as I see no work around.
×
×
  • Create New...