Jump to content
Software FX Community

AndreG

Staff
  • Posts

    333
  • Joined

  • Last visited

Posts posted by AndreG

  1.  Try the following.

     <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %><%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments"   TagPrefix="chartfxadornments" %><%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">   <title>Untitled Page</title>   <script lang="JavaScript" for="Chart1" event="MouseDoubleClick(obj, args)">   if(args.HitType == 4)   alert('Point ' + args.Point + ' of Series ' + args.Series + ' was clicked.');   </script></head><body>   <form id="form1" runat="server">   <chartfx7:Chart ID="Chart1" runat="server" RenderFormat=".NET">   <Series>   <chartfx7:SeriesAttributes />   <chartfx7:SeriesAttributes />   <chartfx7:SeriesAttributes />   </Series>   </chartfx7:Chart>     </form></body></html>

     

    Here is a list of the HitTypes in a chart.

    None = 0,   Background = 1,   InsideArea = 2,   Between = 3,   Point = 4,   Axis = 5,   Title = 6,   CustomGridLine = 7,   Drag = 8,   Crosshair = 9,   Zoom = 10,   Scroll = 11,   LegendBox = 12,   DataGrid = 13,   Other = 14,   AxisSection = 15,

  2.  If you have a DLL written using Chart FX 6.0, it does not have the license embedded in it anyways. The Chart FX license will only be embedded if the project is compile as EXE. Now, Chart FX 7.0 is a completely different product (different API). So the license would not be backwards compatible.

    To use a DLL that was created by you using Chart FX 6.0 you would need to have Chart FX 6.0 (or Chart FX 6.2) installed on your machine.

    I am not 100% sure on what you are trying to do, but I hope my answer helped. Let me know otherwise, explaining further your scenario.

  3.   Please note that when you export a chart as a stream, you will get the image of the chart, the IMG tag and the IMG MAP. Therefore the only interactivity possible are things that can be embedded in an IMG MAP (tooltips and links). This will not change over the next Service Pack release. What we are taking care of right now is to disable the interactivity for you when exporting the chart, so you will not get the NPE.

    Maybe if you explained a little more of what you are trying to do (why are you exporting the chart) we can think of something that would work for you.

  4.  chart1.Data.Series = 1;chart1.Data.Points = 4;Random r = new Random();for (int i = 0; i < chart1.Data.Points; i++){   for (int j = 0; j < chart1.Data.Series; j++)   {   chart1.Data[j, i] = r.Next() * 80;   }}chart1.Gallery = Gallery.Pie;chart1.Points[0].Color = Color.LightGray;

  5.  To roll back your Chart FX version all you need to do is replace the dlls and re-reference them in your project. It might also be necessary to erase any mentions of ChartFX inside the licenses.licx file. Remember to backup the whole thing just in case. Now, im not clear whether or not you have the dlls on the version you need. If you contact support [at] softwarefx.com they might be able to send you those in case you dont have them.

×
×
  • Create New...