Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - Color each bar & Constantline
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Color each bar & Constantline

 Post Reply Post Reply
Author
Message
sfi_dev View Drop Down
Newbie
Newbie


Joined: 07 April 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfi_dev Quote  Post ReplyReply Direct Link To This Post Topic: Color each bar & Constantline
    Posted: 07 April 2011 at 8:07pm
Hi there,
 
I am new ChartPro and have two inital questions with my playing
 
1. Using the constantline -> How do you remove the title on the actual line, but keep the legend  title.
2. Using colors - > I want to color each bar in a bar graph a different color but when I use the coloreach property the legend changes.  I want to change each color but keep the Legend the same. 
Thanks in advance.
 
Julie
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2011 at 6:45am
Hi Julie,

As for the Constant Line text not being visible and showing the Legend for it, this cannot be done. Removing the text removes the legend. Maybe this is something CJ can add to the Chart Control.

As for the colour (I am from the UK, so notice the correct spelling of colour! Big smile lol) try the following code:


    Dim Incidents As ChartSeries, SeriesPoint As ChartSeriesPoint
                           
    Set Incidents = .Content.Series.Add("Incidents")
    Set Incidents.Style = New ChartBarSeriesStyle
    Incidents.Style.Color = &H89533A

    LinePercentage.Points.Add "Daily", 2

    Set SeriesPoint = LinePercentage.Points.Add("Weekly", 5)
    SeriesPoint.Color = &HFF&

    Set SeriesPoint = LinePercentage.Points.Add("Monthly", 20)
    SeriesPoint.Color = &H80FF80

Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2011 at 8:21am
Hi,

missing LegendText property added for next release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
sfi_dev View Drop Down
Newbie
Newbie


Joined: 07 April 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfi_dev Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2011 at 7:57pm
Thank-you for the info. Great.
Hi oleg, how often are there releases ?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.