Chart title disappears after using Title.Characters method

Last post 04-09-2010, 7:17 AM by aspose.notifier. 5 replies.
Sort Posts: Previous Next
  •  01-14-2010, 8:09 AM 217130

    Chart title disappears after using Title.Characters method

    Hi,

    I am trying to modify parts of the chart title by using Title.Characters method, but just by using the method the extracted part remains while rest of the title disappears. Please use the code below to reproduce the problem.

    regards

    Rale

    Workbook wb = new Workbook();

    wb.Worksheets.Clear();

    Worksheet ws = wb.Worksheets.Add("New");

    Style style = wb.Styles[wb.Styles.Add()];

    style.Name = "DateTimeStyle";

    style.Custom = "dd-mm hh:mm:ss";

    DateTime dt = DateTime.Now;

    ws.Cells[23, 2].PutValue(dt);

    ws.Cells[23, 2].SetStyle(style);

    ws.Cells[24, 2].PutValue(dt.AddHours(1));

    ws.Cells[24, 2].SetStyle(style);

    ws.Cells[25, 2].PutValue(dt.AddHours(2));

    ws.Cells[25, 2].SetStyle(style);

    ws.Cells[26, 2].PutValue(dt.AddHours(3));

    ws.Cells[26, 2].SetStyle(style);

    ws.Cells[27, 2].PutValue(dt.AddHours(4));

    ws.Cells[27, 2].SetStyle(style);

    ws.Cells[28, 2].PutValue(dt.AddHours(5));

    ws.Cells[28, 2].SetStyle(style);

    ws.Cells[29, 2].PutValue(dt.AddHours(6));

    ws.Cells[29, 2].SetStyle(style);

    ws.Cells[23, 3].PutValue(3);

    ws.Cells[24, 3].PutValue(4);

    ws.Cells[25, 3].PutValue(9);

    ws.Cells[26, 3].PutValue(13);

    ws.Cells[27, 3].PutValue(16);

    ws.Cells[28, 3].PutValue(3);

    ws.Cells[29, 3].PutValue(7);

    Chart chart = ws.Charts[ws.Charts.Add(ChartType.ScatterConnectedByLinesWithoutDataMarker, 1, 1, 22, 12)];

    chart.CategoryAxis.TickLabels.NumberFormat = "dd-mm hh:mm;@";

    chart.CategoryAxis.TickLabels.Rotation = 45;

    chart.CategoryAxis.TickLabels.Font.Size = 8;

    chart.Legend.Position = LegendPositionType.Bottom;

    chart.ValueAxis.TickLabels.NumberFormat = "0";

    chart.ValueAxis.MinValue = 0;

    chart.ValueAxis.MaxValue = 20;

    chart.Placement = PlacementType.Move;

    String chartSubTitle = DateTime.Now.ToString();

    chart.Title.Text = "Data" + "\n" + chartSubTitle;

    Characters chars = chart.Title.Characters(chart.Title.Text.Length - chartSubTitle.Length, chartSubTitle.Length);

    chart.ValueAxis.Title.Text = "unit";

    ASeries aSerie = chart.NSeries[chart.NSeries.Add(String.Format("{0}!{1}{2}:{1}{3}", ws.Name, "D", 24, 30), true)];

    aSerie.XValues = String.Format("{0}!{1}{2}:{1}{3}", ws.Name, "C", 24, 30);

    aSerie.Name = "Date";

    wb.Save(@"Result.xlsx", FileFormatType.Excel2007Xlsx);

     

    Filed under: characters;chart;title
     
  •  01-14-2010, 8:29 AM 217132 in reply to 217130

    Re: Chart title disappears after using Title.Characters method

    Hi,

    Thank you for considering Aspose.

    We have found your mentioned issue after an initial test. We will look into it and get back to you soon. Your issue has been registered in our internal issue tracking system with issue id CELLSNET-13496.

    Thank you & Best Regards,


    Nausherwan Aslam
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  01-21-2010, 10:03 AM 218468 in reply to 217132

    Re: Chart title disappears after using Title.Characters method

    Hi,

    thanks. When to expect this fix?

    regards

     

     
  •  01-21-2010, 11:42 AM 218493 in reply to 218468

    Re: Chart title disappears after using Title.Characters method

    Hi,

    The issue's status is still in Progress. We will provide you an eta for the issue if it takes longer period.

    Thank you.

    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  01-22-2010, 3:29 AM 218610 in reply to 218493

    Re: Chart title disappears after using Title.Characters method

    Attachment: Present (inaccessible)
    Hi,

    Please try the attached version, we have fixed your mentioned issue.

    Thank you.

    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  04-09-2010, 7:17 AM 231730 in reply to 217130

    Re: Chart title disappears after using Title.Characters method

    The issues you have found earlier (filed as 13496) have been fixed in this update.


    This message was posted using Notification2Forum from Downloads module by aspose.notifier.
     
View as RSS news feed in XML