Jump to content
Software FX Community

duwke

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by duwke

  1. Hi,

    I'm using the silverlight extension to chart some data.  In order to bolt on interactivity, I'm trying to figure out which named objects are associated with each datapoint. 

    Do you have any best practices for doing this?  Because of your architecture, I am effectively sending the data back from the server twice - once with your graph, then again to associate the data.  This is unfortunate, but liveable.  Now.. I have your graph, with some named objects.. and I have the data.  It's unfortunately, not a 1:1 mapping.  What can I do?

    I notice that the output from the silverlight writer includes a "canvasmap."  This has the information that I need.  Could you expose that from the silverlight chart control?  That would certainly make my life easier.

    My other option is to try and read the webform directly, and steal that data..  but that's not going to be much fun.

    Thoughts?  Does the flash writer have this same problem?  Is this the right forum for this question?

    Darin

  2. I have a bar chart that I've created from a datasource.  When I mouse over a series, after a bit of time, all values not in the series dim.  I assumed this could be turned off by

      Chart1.Highlight.Dimmed = false;   Chart1.Highlight.Enabled = false;

     But, it doesn't seem to have an effect.  How do you turn this off?

     

    Thanks,

     

    -Darin 

  3. Hi,

    I have the following pseudocode which is throwing an error:

      string sql = "some sql";

      DataTable dt = DataLayer.GetSqlDt(sql);

      Chart1.DataSourceSettings.Fields.Add(new FieldMap("PRODUCT_FAMILY", FieldUsage.Label));

      Chart1.DataSourceSettings.Fields.Add(new FieldMap(dt.Columns[0].ColumnName, FieldUsage.Value));

      Chart1.DataSourceSettings.Fields.Add(new FieldMap(dt.Columns[1].ColumnName, FieldUsage.Value));

      Chart1.DataSource = dt;

      // The current implementation of Silverlight Writer does not support artistic borders

      Chart1.Border = new SimpleBorder();

      // Note that the Renderer has been set to Silverlight using the code below but it can

      // be also set at design-time

      Chart1.OutputWriter = new SilverlightWriter();

    One of the "PRODUCT_FAMILY" rows has the following data =  <PRODUCT_FAMILY>LL & BACKHOES</PRODUCT_FAMILY>

    The resulting XAML is

    <TextBlock Text="LL & BACKHOES" Canvas.Left="278.7413" Canvas.Top="208.375" FontFamily="Arial" FontSize="10.66667" Foreground="#000000">

    Notice that the & is no longer encoded.  This throws an error.

     

     

  4. We could create our own interactivity though, correct? 

     For example, in Silverlight, I should be able to "find" the uniquely named objects (ellipses, I believe).  Then I could add events to the mouseover to create a multiselect capability, right?

×
×
  • Create New...