Font size and tooltip

  • 5p
    newsgroup_archive5p 10 years, 3 months ago

    Does anyone have any sample code that will put a tooltip on a stacked bar graph? I have a piece of code,
    C1WebChart1.ImageAreas.GetByName("ChartData").Tooltip = ary(pi)
    which is in a for loop and it appears to load the values,
    but that puts the last value of the array as the value for each section of the stacked bar graph.

    Also, I am trying to change the font size of a label in the code and everything I try, it tells me its readonly.

    The code i am trying is:
    Dim lbl As C1.Win.C1Chart.Label
    lbl.Style.Font.Size = 10
    also tried
    C1WebChart1.ChartLabels.DefaultLabelStyle.Font.Size = 10

    Any help is appriciated.

  • 5p
    newsgroup_archive5p 10 years, 3 months ago

    Alright, I got the tooltip thing, that wasn't so bad. But I am still stuck on the font sizes being readonly in the code. If I go to the properties of the webchart, I can change the label font sizes, but in code I can't.

    Thanks!

  • 5p
    newsgroup_archive5p 10 years, 3 months ago

    Font properties are read-only, so you just need to create new font

    lbl.Style.Font = New Font("Arial", 5)


    Best regards,
    Alex

    >
    > Alright, I got the tooltip thing, that wasn't so bad. But I am still
    stuck on the font sizes being readonly in the code. If I go to the
    properties of the webchart, I can change the label font sizes, but in code I
    can't.
    >
    >
    > Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.