Controlling Chart Bar Colors
Hello, I'm just beginning to add charts to my application and I'm finding it difficult to control Chart bar color dynamically. I would like Red, Yellow, Green bars based on limits on the Bar value. Example Values under 5 may be Green, 5 - 9 Yellow, and over 10 Red. The HTML chart appears to either be Random or one Specifc color, and the SVG Chart appears to only be a sinlge color. Both are chosen on the attribute screen of the chart.
Anyone done Dynamic Chart Bar coloring? - Thanks
Hi, and welcome!
Have a look at: [http://apex.oracle.com/pls/otn/f?p=44602:2]
To get this on a Flash Chart, I have:
1 - Set the chart type to: Stacked 2D Column
2 - Set the Color Scheme setting to: Custom
3 - Set the Custom Colors to: red,yellow,green
4 - Created THREE series (with a maximum of 15 rows each) with the following SQL statements:
Series 1:
SELECT NULL LINK, ENAME LABEL, CASE WHEN SAL < 1000 THEN SAL ELSE 0 END VALUE FROM EMP WHERE SAL IS NOT NULL ORDER BY ENAME
Series 2:
SELECT NULL LINK, ENAME LABEL, CASE WHEN SAL BETWEEN 1000 AND 2000 THEN SAL ELSE 0 END VALUE FROM EMP WHERE SAL IS NOT NULL ORDER BY ENAME
Series 3:
SELECT NULL LINK, ENAME LABEL, CASE WHEN SAL > 2000 THEN SAL ELSE 0 END VALUE FROM EMP WHERE SAL IS NOT NULL ORDER BY ENAME
As long as my SQL is correct and the SAL value ranges don't overlap, each ENAME entry will appear in one, and only one, series - for the other two series, the value will be reset to 0, so nothing is shown.
Andy
Similar Messages
-
CR for VS 2005 - Bar Chart - Bar colors
Hi,
I'm creating a report in Visual Studio 2005 and have a bar chart in it. I've searched the forums but can't seem to find out how to change the colors of the Series bars.
If anybody has any ideas or suggestions, they would be greatly appreciated.
Thanks in advance.
RonApparently, the version of CR that ships with Visual Studio doesn't allow much in the way of customization. I have since upgraded to CR 2008 and can now change the bar colors.
-
URGENT!!VALUES DISPLAY IN CHART BARS & COLOR THEMES !!
hi
I want the chart to be displayed with the their values but u can see the values only by rolling over each bars.
Could anyone help me out what are the solutions to be carried out???Is there any options in the EP itself to enter the values displayed automatically when execting it????
what about the color themes to be changed for each bars as per user requirement in EP???
THNX
RAJ.hi Raj,
Few options:
1. if you are using query designer to create query and displaying it in the web analyser and choose graph there, you cant really change the colors of the graphs.
In that case you have to create the web template in the WAD for the same query in BI and make color selections in the graph control in WAD.
2.If you dont want to use WAD, you can use visual composer and try out various options of its chart control. you also have animations possible in visual composer. VC is totally in EP and you dont have to do much on BI except for the query creation.
hope it helps.. -
We just came up on 3.0.1 from version 2.
Now I want to implement Flash charts and everything is working fine with the exception of the colors on bar charts. My customer wants colors different from the default.
How can I change the colors of the bars on the charts?
BobBob,
Under the Chart Attributes, select Custom Color on Color Scheme and enter your desired color or select one via the Flashlight.
Jeff -
Hello folks!
I am creating an Excel chart using Excel Interop (please find below code and output for the code given below). I need to vary the colors of same-series chart bar graphs (The graphs only now in orange). This line of code doesn't do the trick:
series1.Interior.ColorIndex = XlColorIndex.xlColorIndexAutomatic;
How can I achieve my goal? Any advice will be appreciated!
Excel.ChartObjects xlCharts = (Excel.ChartObjects)_sheet.ChartObjects(Type.Missing);
Excel.ChartObject myChart = (Excel.ChartObject)xlCharts.Add(236, 241, 224, 268);
Excel.Chart chartPage = myChart.Chart;
chartPage.HasLegend = false;
chartPage.ChartType = Excel.XlChartType.xlColumnClustered;
chartPage.ChartStyle = 4;
Excel.SeriesCollection seriesCollection = chartPage.SeriesCollection();
Excel.Series series1 = seriesCollection.NewSeries();
series1.Name = "My Title";
series1.XValues = xValues;
series1.Values = yValues;
series1.Interior.ColorIndex = XlColorIndex.xlColorIndexAutomatic;
Excel.Axis axis = (Excel.Axis)chartPage.Axes(
Excel.XlAxisType.xlValue,
Excel.XlAxisGroup.xlPrimary);
axis.HasTitle = true;
axis.AxisTitle.Text = "My Chart";
series1.ApplyDataLabels(
Excel.XlDataLabelsType.xlDataLabelsShowLabel,
true, true, true, false, false, true, true,
true, true);Hi hokushin,
The series1.Interior.ColorIndex property can only set the color for the whole series. If you want to vary the color of the bar graphs in the same series, one way is to vary the color by the Point. For example:
int pointsCount = series1.Points().Count;
for (int i = 1; i <= pointsCount; i++)
series1.Points(i).Interior.Color = Color.FromArgb(0, 30*i, 0);
You can set the color as you want for every Point of the series, the series1.Points([point number]) method will return the whole Points collection or just one Point of them.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Transfer Gantt Chart View color's automatically to Team Planner View
Hi there. My project has 7 different resources with various Resource Names ending characters. I've automatically color coded the bars on my Gantt Chart based on resource allocation by using Flags 1-7, Custom Fields, and the formula IIf(Left([Resource
Names],3)="xxx",Yes,No). I then change the format of each bar style to the color I desire.
I am looking for a way to automatically transfer the colors I have assigned the tasks in my Gantt Chart to the Team Planner view. I don't believe there is a simple way to do this but would appreciate any help aside from manually formatting each of
the tasks in Team Planner view.
Thanks for the help!
-Joejbarrazotto --
Alas, there is no way to do what you want with the Team Planner view. This is because there is no dialog similar to the Bar Styles dialog where you can control the formatting. Basically, the Team Planner view has definitions for Manually Scheduled
tasks, Auto Scheduled tasks, Actual Work on tasks, External Tasks, and Late Tasks. Using the corresponding buttons in the Styles section of the Format ribbon with the Team Planner Tools applied, you can control the fill color and the border color for
every bar of one of those types. But there is no way to add other buttons to the ribbon to control the Gantt-like bars that are shown in the Team Planner view. So, what you want to do with the Team Planner view is not possible. Sorry.
Hope this helps.
Dale A. Howard [MVP] -
Implementing SPC/Control charts in Reporting Services/BI Solution
Hello All
I'm one of the BI specialists in our company - currently looking after our BI solution which incorporates SQL Server 2005, SSRS, SSIS, SSAS, Performance Point, Pro Clarity and various other bits and bobs etc.
What I'm aiming to do, is establish a suite of SPC/Control charts for our portal, based on the suite of cubes we already have. At the moment, I'm thinking of producing these in the SSRS environment, but I'm open to suggestions!
As a starting point, I've created the necessary charts in Excel (calculating averages, standard deviation, upper/lower control limit) etc, but now I'm looking at implementing it in our DWH.
Third party software may be an option (such as Dundas, which keeps cropping up in my crusades!) but I'd like to perhaps generate these myself - if I'm not asking too much that is!
Any advice greatly appreciated...
Cheers
LeeHi Lee,
Based on your descriptions, you want to implement Statistical Process Control(SPC) chart in SQL Server Reporting Services. If I have misunderstood, please do not hesitate to let me know.
By default, we only have Column, Line, Shape, Bar, Area, Range, Scatter, Polar charts in SQL Server Reporting Services. As a workaround, we can anaylze the data using SQL Server Analysis Services, and then use these chart to display the data in SQL Server Reporting Services. We can use parameters to filter data.
Third party software may be an option. However, if you want to implement these charts by yourself, we can implement a custom report item in SQL Server Reporting Services. We can start it from here: http://msdn.microsoft.com/en-us/library/ms345231.aspx
If you have any more questions, please feel free to ask.
Thanks,
Jin Chen
Jin Chen - MSFT -
How to generate control limits in control chart
I want to generate a X bar chart with control limits, sample size is Fix- 1.
SPC criterion I selected is 020 ie Task List characteristics/ Material.
1)Sampling Procedure I used- Fixed-1
2)Valuation mode I used- Attrib non conforming units/ manual.
3)Control chart I am using is 110- Shewart chart for X bar.
But when I click for control limits in chart it is saying control limits for track 1 could not be calculated.
Could anyone guide me, how to generate control limits for this graph. Sammple size will alwyas be 1.
Please let me know should I change control chart type in this case.Hi Jaison,
You should use valuation mode - SPC valuation in sampling procedure.
Also you have to use sampling procedure with inspection points.
as practically every hour or depending on the frequency decided we collect the measurements and calculate the SPC.
now after correction in the sampling procedure create new inspection lot and check SPC.
try out and revert.
Regards,
Anil -
Dear Experts
As part of SAP QM Implementation we are implementing control chart functionality to get graphical representation against measured values for pre-defined parameters. I am facing two issues mainly:
1. When I try to calculate control limits (clicking calculator button) getting message "Control limits for track 1 could not be calculated". MICs has the upper limit and lower limit maintained which I can see in QAMV table for the inspection lots.
2. In the attached control chart , I am getting Upper Limit, Lower Limit and the Valuated Result in graphical form, when I try to display the inspection date, for the characteristics against inspection lot, I get lost. System is showing some date 7/14/14 against all the characteristics which I am not sure how to achieve.
Settings I made:
Sampling type: Fixed sample
Valuation mode: SPC inspection
W/O inspection point
Sample size: 5
Chart type:115 Shewhart chart for X bar/USA
MIC Settings:
Quantitative / Lower / Upper Sp. Limit / Sampling Procedure / SPC Characteristics / Summerised Recording / Required Char.
Inspection plan setting is:
SPC criterion : 020 task list char/material
Base qty : 1KG
Control Chart Configurations:
1. Control Chart Type -115
a) Change Control Limit not checked
b) Characteristics Type- Fixed Scope, Record measured values
c) Reference Axis (x-axis) - Time of Creation ( Do I need to change here to "Object Number" or "Time Of Inspection" ?)
Any input will be highly appreciated.
Regards
SKHello,
For Control limits your chart needs to closed. and offcourse for calculation u need to have more than one inspection lot. then system will calculate the same. UD is also required against lots.
Regards -
how can i take the print out of the control chart and also the necessary data like Cp Cpk values.
My exact requiremnt is, i want X-bar chart, R chart, all statistical values and also the results recorded of that characteristics on 1 page.
How is it possible?
Message was edited by:
sandip raut
Message was edited by:
sandip raut
Message was edited by:
sandip rautHi,
you can use the t.code for OPK8-DEFINE PRINT CONTROL
(SPRO> PRODUCTION> SHOP FLOOR CONTROL --> INTEGRATION --> DEFINE PRINT CONTROL.
This is your mentioned requirement matched. pls check with this t.codeOPK8.
Regards,
Mohan R -
I'm having trouble with the X bar and S chart control limits. I am not able to get them to calculate as expected. Also, I'm not clear on what the number parameters (parameter 1, 2, 3, and 4) in the IMG do.
Has anyone out there successfully set-up SPC charting? If so, will you please give me some pointers? We are collecting the mean and standard deviation for each of our test parameters by inspection lot. The number inspected varies per inspection lot.
Thanks,
BobHi Shailendra,
After I change the SPC criteria to "070 MIC/Material" in insp. plan, the control chart shows multiple insp. lot result successfully.
But the system auto collect all the corresponding MIC/Material in one item (ex. 19th). Is there any way to separate the result by every month?
Thanks. -
Hi,
We are using Crystal Reports XI R2. We have a requirement wherein we would like to programmatically set color or bars in a chart report. I was going through the API reference but could not find any class that could help. Could someone point me in the right direction?
This is apart of a C#.net application using VS2005 and SQL Server 2005.
Thanks!
D2Hi John,
Its not possible to programatically change bar color in reports.
See this business objects note # 1197468 .
Content of Note is here:
Symptom
Is it possible to change the line colors in a line chart or the bar colors in a bar chart at run time using Visual Studio .NET?
Cause
The chart analyzer is a third party tool that Crystal is licensed to use in the designer. That means in the Crystal Designer you have a lot of chart functionality, but at runtime the chart exists as part of the report object and the analyzer is not present. That means you have a few formatting options but no creation functionality.
Resolution
Using the Crystal reprots SDK for .Net it is not possible to change the line colors in a line chart or the bar colors in a bar chart at run time.
The .Net sdk provides minimal ability for accessing chart objects. Using Chart Object you can only set properties such as Height, Width, Border, etc., at runtime and retrieve information about the Chart Object in a report.
Regards,
Shweta -
Control chart tolerance limits lines not shown
As Run chart displays values of Single result, SPC Control charts also Displays these reults with tolerance limit with Showing lines of uper and lower limit Tolerence. I have an issue while showing these lines .when i am doing result recording control charts Some times shows tolerance limit lines and some times not ? Kindly clarify me the SPC control chart process too?but my main question is that why SAP some times shows Results and sometimes not .
More over I already did all settings as below
Sapmling procedure with Fixed samples ,and SPC inspection crieteria,
Inspection plan -Inspection task list cahracterstics
MIC
Sampling proceudre -active
SPC - Active
Required Chrac.-Active
Single result -Active
Fixed scope -Active
All settings of number ranges is set
Control chart 115 -Shewchart X bar is using .Hi Vineeth,
We are using SPC inspection chars, in results recordin it is not calulating the control limits automatically. When i click to calculate the control limits, getting the message Control limits for track 1 could not be calculated.
Can you please let me know
1) The process flow for SPC inspection results recording
2) How to get the control limits automatically for SPC inspection chars.
3) System will require some results to calculate control limts, right? So, till system calculates those control limits, how system will valuate results (will it be with specificaiton limits specified at inspection characteristics level), do we have any option of entering preliminary results so that system can control limits on bases of those results and so from very first inspection lot we have control limits for valuation?
Thanks in advance
Bob -
Control chart title in chinese (QE51N)
Hello,
In the QE51N transaction, there is a control chart. The english title is "Acceptance chart for x-bar / samples". In the V_QPSH view there is the translation in chinese: "承兑图,用于 x 条 / 样本". But the chinese title doesn't appear correctly in the chart control. Indeed, i have "???????X ? / ????".
I try to change the regional options of my computer in chinese but i still have the same title with the ?.
What must i do in order to have the correct title?
Thanks by advance,
Laurent.This can also be an authorization issue.
There is an authorization object S_TRANSLAT ( translation environment) which checks the authorization for translation in deifferent languages and texts.
Please ensure that you sufficient authorization for the fields Activity, Language & Text in this object. -
Dear all gurus!
I need to check control chart where it is ? how to do configuration or transaction for control charts
and PPM level, and what is Cp & Cpk charts?
Thanks & regards
sudarshanHI,
Cp stands for process capability.
Cpk stands for process capability index.
Cp and Cpk are measurements of process capabilities. They are used in studies such as process capability and can be used to monitor a process similar to how X-Bar and Range charts are used.
Cp - Inherent Process Capability
Note: in some industries this calculation is called pk.
This is the ratio of the Upper Specification Limit minus the Lower Specification Limit to six sigma. It is denoted by the symbol Cp.
Cp = (Upper Spec Limit - Lower Spec Limit)
6s Actual
Note: s = Sigma
You cannot calculate Cp if your specifications are one sided. In other words, if you specification only has an upper parameter specification limit or a lower specification limit. In these cases, Cp is ignored and only Cpk can be used.
There is some confusion about the difference between Cp and Pk along with Cpk and Ppk. The difference is in how you calculate the actual sigma, or standard deviation, either using an estimate, or the actual calculations. These terms are tossed around a lot and are sometimes used interchangeable, even though they are not. For details see the Sigma/Standard Deviation explanation.
We have made calls out for scientific proof that has been reviewed by peers as to the validity of the estimated way and have as of yet to seen the data. Statistics IS a science, and as such, all theory should be able to be validated by such peer reviews.
Cpk - Process Capability
Note: in some industries this calculation is called Ppk.
This is the capability of the process expressed in relation to a worse case scenario view of the data. It is denoted by the symbol Cpk.
Use it to determine if a process or service, is within the normal variation, and is capable of meeting specifications.
Cpk = the lesser of ...
Cpk = (Upper Spec Limit - Mean) (Mean - Lower Spec Limit )
or
3s Actual 3s Actual
Note: s = Sigma
For an example of a distribution, X Bar, and R Bar charts see our ZeroRejects features page. It makes doing statistical process control charts easy. And at only $150.00, (USD), our software can get you going quickly.
for control chart in sap please follow below link
http://help.sap.com/saphelp_erp60_sp/helpdata/en/4e/a8b43446a1c564e10000009b38f83b/frameset.htm
Regards
Bibhu
Maybe you are looking for
-
I have Reader XI 11.0.06 installed with IE10. If I enable Enhanced Protected Mode via group policy, the plugin loads documents inside the browser window. However, if the site forces the browser to download the document, EPM blocks the Reader plugin.
-
Firefox Safe mode has taken over my computer, how do I turn it off?
Something called Firefox Safe mode has taken over my computer, how do I turn it off?
-
Error when migrating from obiee 11.1.1.3 to 11.1.1.5
Hi We have developed scorecards in Obiee 11.1.1.3. Now we have a requirement to upgrade from 11.1.1.3 to 11.1.1.5...For that we are palnning to install 11.1.1.5 on other machine and move the rpd and catalog from 11.1.1.3 to the new system..Will it wo
-
Import/use SVG in Catalyst project
I'm using Inkscape to draw some icons that I would like to convert into skins for use with spark components. As I understand it, Flash catalyst should be the option for me to convert the designs into skins. But I can't for the life of me figure out h
-
JAX issue - casting problem?
I've got an odd issue with an externally provided WSDL. While feeding it to wsimport I get the following [WARNING] not a WS-I BP1.1 compliant SOAP port "TestSoap": the wsdl binding has mixed style, it must be rpc-literal or document-literal operation