Profile Picture

NChartControl Export Problem

Posted By Kevin Harrison 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Kevin,

The check can be based on the chart type + series types contained in it - the following list shows which series support only 2D or 3D:

--------------------------2D Only----------------------------------------
Radar Line
Radar Area
Polar Point
Polar Line
Polar Area
Venn
Box & Whiskers
Kagi
Renko
Point and Figure
Three Line Break
Line Studies

--------------------------3D Only----------------------------------------
Grid Surface
Mesh Surface
Triangulated Surface

Hope this helps - let us know if you meet any problems or have any questions.



Best Regards,
Nevron Support Team



Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

Actually, your code is too strict.  For example, it excludes a 3D pie chart, which will export OK (2D for some formats, 3D for others).  Is there a more rigorous check I can apply?

Thanks

Kevin



Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1
Thanks. I was trying to use the ChartControl Render settings, but not getting very far!

bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

Hi Kevin,

You can detect whether the control requires 3D rendering capabilities by iterating through the charts collection and checking the Enable3D property - for example:

  private static bool Requires3D(NChartControl control)
  {
   int count = control.Charts.Count;
   for (int i = 0; i < count; i++)
   {
    if (control.Charts[i].Enable3D)
    {
     return true;
    }
   }

   return false;
  }

Returns true if the control requires 3D and false if all charts are in 2D mode.

 



Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

In that case, I need to detect when the export won't be correct for the vector formats.  If you use the dialog, you get a warning. Is there somewhere in code I can achieve the same thing?

Thanks

Kevin

 


Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Kevin,

Currently 3D charts can be exported only in raster formats. Vector formats (like PDF, Flash etc) are supported only for 2D charts.

Surface charts are available only in 3D mode (flat contour charts are also rendered with the 3D engine), which means that they can be exported only in raster formats.

Best Regards,
Nevron Support Team



Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

Hi

I have successfully used the exporter to export 2D charts and pie charts to all the image formats.  However, if I try to export a 2D or 3D surface (NCartesianChart with NTriangulatedSurfaceSeries data) then the chart area is blank (for a 2D contour) or just shows one wall (3D surface) for all vector based formats. Is this a known limitation related to the nature of these formats?

Thanks

Kevin





Similar Topics


Reading This Topic