Print Page | Close Window

Color each bar & Constantline

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18184
Printed Date: 21 November 2024 at 5:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Color each bar & Constantline
Posted By: sfi_dev
Subject: Color each bar & Constantline
Date 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



Replies:
Posted By: Xander75
Date 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)


Posted By: Oleg
Date Posted: 08 April 2011 at 8:21am
Hi,

missing LegendText property added for next release.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sfi_dev
Date Posted: 17 April 2011 at 7:57pm
Thank-you for the info. Great.
Hi oleg, how often are there releases ?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net