To set color for barchart having datetime column
Hi,
I have a datetime column in the XSD,
I was trying to set colors for the barchart through, chart expert --> colorhighlight ,here in colorhighlight when i click on new I am getting a dialogue box asking to enter datetime in M:D:YYYY H:MM:SS TT format. why is this dialogue displayed ? How to overcome this.
Regards,
Deepa V
Hi Deepa
Please inform us with the following information:
1: What is the version of Crysatl Reports that you are using?
2: What is the Chart Type that you are uisng?
3: Where are you placing this chart in the report?
Regards
Ashwini Yadav
Similar Messages
-
How to set color for a tabstrip in BSP
Hello all,
Can anyone please let me know how to set color for a tabstripn in BSP?
I am using the below syntax but it still gives me the default color.
<htmlb:content design="design2003" >
<htmlb:page title="test " >
<htmlb:form>
<htmlb:tabStrip id = "TabStrip"
bodyHeight = "200"
bodyColor = "red"
width = "700" >
</htmlb:tabStrip>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Thanks,
SandeepHi...
The below code is working fine for me...
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="stg " >
<htmlb:form>
<htmlb:tabStrip width = "430"
bodyColor = "rgb(88,5,64)"
id = "t1"
bodyHeight = "112" >
<htmlb:tabStripItem id = "t1"
index = "1"
title = "Sales"
tooltip = "My Tooltip for Tab 1" >
<htmlb:textView text="Tab N 1" />
<htmlb:tree id = "treeReports"
showTitle = "true"
table2 = "<%= mt_nodes %>"
title = "Menu"
width = "100%" />
</htmlb:tabStripItem>
<htmlb:tabStripItem id = "t2"
index = "2"
title = "Production"
tooltip = "My Tooltip for Tab 2" >
<htmlb:textView text="Tab N 2" />
</htmlb:tabStripItem>
</htmlb:tabStrip>
</htmlb:form>
</htmlb:page>
</htmlb:content> -
Setting Color for Records in forms6i
Dear All
How can I set color for particular records on a form. i.e. Set the color of all employees whose salary is greater than 2000 to Red and All the rest to Green
SolomonHello,
6i is an old version and I don't remember if there is a Set_Item_Instance_Property() built-in. If yes, you can use it with a Visual Attribute that held the colors.
Francois -
How set color for a ValidationTextField's hint?
I want to set color for a ValidationTextField's hint, to
implement watermark effect, how do it?Hi...
The below code is working fine for me...
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title="stg " >
<htmlb:form>
<htmlb:tabStrip width = "430"
bodyColor = "rgb(88,5,64)"
id = "t1"
bodyHeight = "112" >
<htmlb:tabStripItem id = "t1"
index = "1"
title = "Sales"
tooltip = "My Tooltip for Tab 1" >
<htmlb:textView text="Tab N 1" />
<htmlb:tree id = "treeReports"
showTitle = "true"
table2 = "<%= mt_nodes %>"
title = "Menu"
width = "100%" />
</htmlb:tabStripItem>
<htmlb:tabStripItem id = "t2"
index = "2"
title = "Production"
tooltip = "My Tooltip for Tab 2" >
<htmlb:textView text="Tab N 2" />
</htmlb:tabStripItem>
</htmlb:tabStrip>
</htmlb:form>
</htmlb:page>
</htmlb:content> -
Set Default Color For BarChart YAxis Data Values.
Remove alert
|
Edit
|
Delete
|
Change type
0
I am new to MS Chart. I am drawing a simple bar chart with following code. My chart draws red lines, for my datapoints (Y Axis), I want to draw, I want to set the color of remaining data points for example for 1st record (i.e. dt1) my jobData
have value 10, my graph shows red line for 10 points, for remaining 20 points I need to show the Green Line and also for the remaining data points. Thanks in advance.
double[] jobData = new double[] { 10, 3, 4, 5, 2, 0, 2, 3, 0, 1 };
DateTime dt1 = new DateTime(2015, 3, 17, 8, 30, 0);
DateTime dt2 = new DateTime(2015, 3, 17, 8, 35, 0);
DateTime dt3 = new DateTime(2015, 3, 17, 8, 40, 0);
DateTime dt4 = new DateTime(2015, 3, 17, 8, 45, 0);
DateTime dt5 = new DateTime(2015, 3, 17, 8, 50, 0);
DateTime dt6 = new DateTime(2015, 3, 17, 8, 55, 0);
DateTime dt7 = new DateTime(2015, 3, 17, 9, 00, 0);
DateTime dt8 = new DateTime(2015, 3, 17, 9, 05, 0);
DateTime dt9 = new DateTime(2015, 3, 17, 9, 10, 0);
DateTime dt10 = new DateTime(2015, 3, 17, 9, 15, 0);
DateTime[] xData = new DateTime[] { dt1, dt2, dt3, dt4, dt5,dt6,dt7,dt8,dt9,dt10 };
InitializeComponent();
//Horizontal bar chart
//Create a chart area and add it to the chart
ChartArea area = new ChartArea("First");
chart1.ChartAreas.Add(area);
// chart1.x = Color.Green;
chart1.Size = new Size(1000, 700);
//Create a series using the data
Series barSeries = new Series();
barSeries.XValueType = ChartValueType.DateTime;
barSeries.BorderColor = Color.Green;
barSeries.ChartType = SeriesChartType.Column;
barSeries.Color = Color.Red;
area.AxisX.LabelStyle.Format = "HH:mm";
area.AxisY.Maximum = 30;
area.AxisY.InterlacedColor = Color.Green;
area.AxisY.Interval = 1;
// chart1.ChartAreas(0).AxisX.LabelStyle.Format = "HH:00"
barSeries.Points.DataBindXY(xData, jobData );
//Set the chart type, Bar; horizontal bars
barSeries.ChartType = SeriesChartType.Bar;
//Assign it to the required area
barSeries.ChartArea = "First";
//Add the series to the chart
chart1.Series.Add(barSeries);Remove alert
|
Edit
|
Delete
|
Change type
0
I am new to MS Chart. I am drawing a simple bar chart with following code. My chart draws red lines, for my datapoints (Y Axis), I want to draw, I want to set the color of remaining data points for example for 1st record (i.e. dt1) my jobData
have value 10, my graph shows red line for 10 points, for remaining 20 points I need to show the Green Line and also for the remaining data points. Thanks in advance.
double[] jobData = new double[] { 10, 3, 4, 5, 2, 0, 2, 3, 0, 1 };
DateTime dt1 = new DateTime(2015, 3, 17, 8, 30, 0);
DateTime dt2 = new DateTime(2015, 3, 17, 8, 35, 0);
DateTime dt3 = new DateTime(2015, 3, 17, 8, 40, 0);
DateTime dt4 = new DateTime(2015, 3, 17, 8, 45, 0);
DateTime dt5 = new DateTime(2015, 3, 17, 8, 50, 0);
DateTime dt6 = new DateTime(2015, 3, 17, 8, 55, 0);
DateTime dt7 = new DateTime(2015, 3, 17, 9, 00, 0);
DateTime dt8 = new DateTime(2015, 3, 17, 9, 05, 0);
DateTime dt9 = new DateTime(2015, 3, 17, 9, 10, 0);
DateTime dt10 = new DateTime(2015, 3, 17, 9, 15, 0);
DateTime[] xData = new DateTime[] { dt1, dt2, dt3, dt4, dt5,dt6,dt7,dt8,dt9,dt10 };
InitializeComponent();
//Horizontal bar chart
//Create a chart area and add it to the chart
ChartArea area = new ChartArea("First");
chart1.ChartAreas.Add(area);
// chart1.x = Color.Green;
chart1.Size = new Size(1000, 700);
//Create a series using the data
Series barSeries = new Series();
barSeries.XValueType = ChartValueType.DateTime;
barSeries.BorderColor = Color.Green;
barSeries.ChartType = SeriesChartType.Column;
barSeries.Color = Color.Red;
area.AxisX.LabelStyle.Format = "HH:mm";
area.AxisY.Maximum = 30;
area.AxisY.InterlacedColor = Color.Green;
area.AxisY.Interval = 1;
// chart1.ChartAreas(0).AxisX.LabelStyle.Format = "HH:00"
barSeries.Points.DataBindXY(xData, jobData );
//Set the chart type, Bar; horizontal bars
barSeries.ChartType = SeriesChartType.Bar;
//Assign it to the required area
barSeries.ChartArea = "First";
//Add the series to the chart
chart1.Series.Add(barSeries);
Hello,
Since this issue is mainly related to Chart control, I have helped you move this thread to
Chart Controls for .NET Framework forum to get help.
Regards,
Carl
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. -
Set Default Color For BarChart YAxis.
I am new to MS Chart. I am drawing a simple bar chart with following code. My chart draws red lines, for my datapoints (Y Axis), I want to draw, I want to set the color of remaining data points for example for 1st record (i.e. dt1) my jobData
have value 10, my graph shows red line for 10 points, for remaining 20 points I need to show the Green Line and also for the remaining data points. Thanks in advance.
double[] jobData = new double[] { 10, 3, 4, 5, 2, 0, 2, 3, 0, 1 };
DateTime dt1 = new DateTime(2015, 3, 17, 8, 30, 0);
DateTime dt2 = new DateTime(2015, 3, 17, 8, 35, 0);
DateTime dt3 = new DateTime(2015, 3, 17, 8, 40, 0);
DateTime dt4 = new DateTime(2015, 3, 17, 8, 45, 0);
DateTime dt5 = new DateTime(2015, 3, 17, 8, 50, 0);
DateTime dt6 = new DateTime(2015, 3, 17, 8, 55, 0);
DateTime dt7 = new DateTime(2015, 3, 17, 9, 00, 0);
DateTime dt8 = new DateTime(2015, 3, 17, 9, 05, 0);
DateTime dt9 = new DateTime(2015, 3, 17, 9, 10, 0);
DateTime dt10 = new DateTime(2015, 3, 17, 9, 15, 0);
DateTime[] xData = new DateTime[] { dt1, dt2, dt3, dt4, dt5,dt6,dt7,dt8,dt9,dt10 };
InitializeComponent();
//Horizontal bar chart
//Create a chart area and add it to the chart
ChartArea area = new ChartArea("First");
chart1.ChartAreas.Add(area);
// chart1.x = Color.Green;
chart1.Size = new Size(1000, 700);
//Create a series using the data
Series barSeries = new Series();
barSeries.XValueType = ChartValueType.DateTime;
barSeries.BorderColor = Color.Green;
barSeries.ChartType = SeriesChartType.Column;
barSeries.Color = Color.Red;
area.AxisX.LabelStyle.Format = "HH:mm";
area.AxisY.Maximum = 30;
area.AxisY.InterlacedColor = Color.Green;
area.AxisY.Interval = 1;
// chart1.ChartAreas(0).AxisX.LabelStyle.Format = "HH:00"
barSeries.Points.DataBindXY(xData, jobData );
//Set the chart type, Bar; horizontal bars
barSeries.ChartType = SeriesChartType.Bar;
//Assign it to the required area
barSeries.ChartArea = "First";
//Add the series to the chart
chart1.Series.Add(barSeries);I am not sure this is exactly what you mean, but, I think the only way to change the data color is to use a different series.
Imports System.Windows.Forms.DataVisualization.Charting
Public Class Form6
Private Sub Form6_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'setup the chart
With Chart1.ChartAreas(0)
.AxisX.Title = "X"
.AxisX.MajorGrid.LineColor = Color.LightBlue
.AxisX.Minimum = 0
.AxisX.Maximum = 24
.AxisX.Interval = 6
.AxisY.Title = "Y"
.AxisY.MajorGrid.LineColor = Color.LightGray
.AxisY.Minimum = 0
.AxisY.Maximum = 24
.AxisY.Interval = 6
.BackColor = Color.FloralWhite 'AntiqueWhite 'LightSkyBlue
.BackSecondaryColor = Color.White
.BackGradientStyle = GradientStyle.HorizontalCenter
.BorderColor = Color.Blue
.BorderDashStyle = ChartDashStyle.Solid
.BorderWidth = 1
.ShadowOffset = 2
End With
Dim heading1 As String = " 1 - 12"
Dim heading2 As String = "13 - 24"
'draw the chart
Chart1.Series.Clear()
Chart1.Series.Add(heading1)
Chart1.Series.Add(heading2)
Chart1.Series(0).ChartType = DataVisualization.Charting.SeriesChartType.Line
Chart1.Series(0).BorderWidth = 1
Chart1.Series(0).Color = Color.Red
Chart1.Series(0).BorderDashStyle = ChartDashStyle.Dash
Chart1.Series(0).MarkerStyle = DataVisualization.Charting.MarkerStyle.Square
Chart1.Series(0).MarkerSize = 4
Chart1.Series(1).ChartType = DataVisualization.Charting.SeriesChartType.Line
Chart1.Series(1).Color = Color.ForestGreen
Chart1.Series(1).BorderWidth = 2
For x = 1 To 24
If x > 12 Then
Chart1.Series(1).Points.AddXY(x, x)
Else
Chart1.Series(0).Points.AddXY(x, x)
End If
Next
End Sub
End Class -
Setting color for cells in a particular column of a jtable
Hi, I know how to set the color for a cell in a column if the cell contains an Integer object and if I have default Integers already in the JTable when I begin. However I want the JTable to look blank at the beginning. As I can't make an Integer object invisible on the JTable I need to specify the colum in which I want the cells to change color in. I want to specify the column some how and then when the table later has Integers in it i can do a comparison to decide whether i want to change the color or not. Does anyone know how I will do this.
Please HELP.1) You need to set the tooptip text on the renderer for the column (yourTable.getColumnModel().getColumn(...).getHeaderRenderer()).
2) The header is a separate component to the table. When you add a table to a scroll pane it automatically adds the header to the scroll pane too. You can get the component (yourTable.getTableHeader()) and add it to your own container if you wish. -
Set color for TableCellDesign for a table in readmode.
My Requirement is dynamic assiging the Tabcelldesgin color for table column, but Table in readonly = false.
is there any possiblity of assigining the values dunamically.
Thanks in advanceYes, i have assigned to Table column to set color dynamically for different conditions.
But color is visible, when table in read mode.
My requirement is need to set color, when table in readonly = false.
Please can any one have the solution for this> -
Setting colors for item labels in JFreeChart (WaferMapRenderer)
Hi,
first of all, sorry for posting a JFreeChart related posting on this forum, but I didn't get a solution right now (I even didn't find anything useful on the JFreeChart website/forum). Here's my question...
I'm trying to set the color for item labels in the legend but with no success.
Here's a code example:
final JFreeChart chart = ChartFactory.createWaferMapChart(
"Wafer Map Demo", // title
dataset, // wafermapdataset
PlotOrientation.VERTICAL, // vertical = notchdown
true, // legend
true, // tooltips
false
WaferMapPlot plot = (WaferMapPlot) chart.getPlot();
WaferMapRenderer renderer = new WaferMapRenderer();
renderer.setSeriesItemLabelPaint(0, Color.red);
renderer.setSeriesItemLabelPaint(1, Color.blue);
plot.setRenderer(renderer);The default behavior of the WaferMapRenderer is also strange because the item label as well as the item marker is painted black so you cannot distinguish different fields of the wafer map. Is this a bug or am I doing something wrong (or missing somehting)?
Any help would be greatly appreciated.
Thanks and best regards,
- StephanYour folder action script doesn't work because of one simple error:
set label index of every item of entire contents of processFolder to 7
Nowhere in your script is 'processFolder' defined, so AppleScript has no idea what you're trying to do.
Given that you (correctly) iterate through added_items, the correct format would be:
on adding folder items to this_folder after receiving added_items
repeat with item_ in added_items
tell application "Finder"
set label index of item_ to 7
end tell
end repeat
end adding folder items to
In other words, this changes the label index of each item just added.
That should work provided you're dropping files into this folder. If you're dropping folders then this would set the label index of the folder itself, but not necessarily the items within that folder. For that you'd need to add a check to see if item_ was a folder and add code to handle folders.
Also note that this kind of folder action will only work on the folder itself - that is, if you have folder A that contains subfolder B, then dropping a file into subfolder B won't trigger the script and won't change that item's label. To do that you'd have to attach your folder action to subfolder B. -
JEditorPane set color for desired chars
How can I set color and other parameters for desired chars in JEditorPane or it's better to use some other class.
Thanks.Read this section from the Swing tutorial on "Using Text Components" and then decide which is best for you:
http://java.sun.com/docs/books/tutorial/uiswing/components/text.html -
Setting Color for whole application
Hello everybody.
I've to set the Button.background - Color for a whole application.
For these purpose I use the JColorChooser and the
UIManager.put("Button.background",>anyColor<); - method.
When I use this the first time after start it works fine. When I try to change the color again it doesn't.
Any ideas?
Thanks for your help.OK, no more help needed at this time.
My mistake was that I tried to call
UIManager.put("Button.background",Color.red);
it has to be:
UIManager.put("Button.background",new ColorUIResource(Color.red)); -
Setting Color for MenuItem Accelerator Nimbus Layout
Hi,
I'm trying to change the Color for my GUI during runtime. I've created an Dialog including a ColorChooser. If a user selects a new color and confirms the change with "OK" the color of all items in the GUI should be changed. This is working for most of the components.
But the color for the MenuItem Accelerator (f.e. STR+V) does not change. The change for the MenuItem itself is working. I tried different ways - using the UIManager.put, overwriting the MenuItem paint method, but nothing works.
Any ideas or hints?Hi,
I'm trying to change the Color for my GUI during runtime. I've created an Dialog including a ColorChooser. If a user selects a new color and confirms the change with "OK" the color of all items in the GUI should be changed. This is working for most of the components.
But the color for the MenuItem Accelerator (f.e. STR+V) does not change. The change for the MenuItem itself is working. I tried different ways - using the UIManager.put, overwriting the MenuItem paint method, but nothing works.
Any ideas or hints? -
How to set color for a particular column in advance table?
How can we set the color of a particular column in advance table based on some parameter feteched from vo query in process request?
i have tried the same way as mentioned in the post but ,its giving error
java.lang.ArrayIndexOutOfBoundsException: 0
processRequest code
OAAdvancedTableBean table =
(OAAdvancedTableBean)webBean.findIndexedChildRecursive("TimEntAdvtbl");
if (table != null)
System.out.println("table");
OAColumnGroupBean daily =
(OAColumnGroupBean)table.findIndexedChildRecursive("DailyColGrp");
if (daily != null)
System.out.println("daily col");
OAColumnGroupBean ColGrp6 =
(OAColumnGroupBean)table.findIndexedChildRecursive("ColGrp6");
if (ColGrp6 != null)
System.out.println("ColGrp6");
OAColumnBean SatCol =
(OAColumnBean)webBean.findIndexedChildRecursive("SatCol");
if (SatCol != null)
System.out.println("col");
OAMessageTextInputBean sat1 =
(OAMessageTextInputBean)SatCol.findIndexedChildRecursive("sat");
if (sat1 != null)
System.out.println("sat1");
OADataBoundValueViewObject csssat= new OADataBoundValueViewObject(sat1,"Color");
sat1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, csssat);
Error Page
## Detail 0 ##
java.lang.ArrayIndexOutOfBoundsException: 0
at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3199)
at oracle.sql.NUMBER.toString(NUMBER.java:761)
at oracle.sql.NUMBER.stringValue(NUMBER.java:2090)
at oracle.jbo.domain.Number.toString(Number.java:390)
at oracle.apps.fnd.framework.webui.OADataBoundValue.formatObject(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValue.convertValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.convertValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValue.getValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OADataBoundValueViewObject.getValue(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean.getAttributeValueImpl(Unknown Source)
at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
Please help -
Is there any way that I can hard code a color into a chart and still filter out values?
I have 5 divisions, each with a specific color. I have put them into a stacked column chart and it looks fine. My issue arises when I try to filter out some of the divisions. The colors do not stay with the specified divisions.
Ex.)
Div 1 = Red
Div 2 = Green
Div 3 = Black
When I filter out Div 1, this is what I see:
Div 2 = Red
Div 3 = Green
I have tried standard delivered filter panel, and check-boxes using CHART_1.setDataSelection( )
It seems like the color hard coding in the "additional" properties of the chart are not tied to the value, but are determined by sort order. Any help is greatly appreciatedHi,
There is one Possibility bu not By chart .
It will look like chart but will use Text box .
Lets say you have 5 Divisions & 3 Key figures .
Then You need 5 * 3 = 15 Text box .
Arrange them in 5 columns and 3 rows type of view .
now .
set fix width for all .
set the height & position by coding
You need to set this type of code for filter selection also . -
I've just been reading the look-and-feel guidelines, and they suggest using Primary 1 (#666699) for labels for components in the GUI. However, they don't suggest how to get this programatically. The examples use resource bundles to get strings (i.e. resources.getString(componentName.labelString) but they don't explain how to set up and best use a resource bundle.
What is the easiest way to set the color of a label to "Primary 1" for the current look-and-feel.
Our apps are currently not at all internationalised, so we don't have any existing resource bundles.
Cheers,
-THi,
this is a tutorial about resource bundles:
http://java.sun.com/docs/books/tutorial/i18n/resbundle/index.html
Maybe you are looking for
-
How do I write/use performance monitor to run an action when something happens?
I notice that I get a popup if desktop resources are over-used asking me if I want to turn off the glass desktop. That's fine. I've been looking in Performance Monitor for how this is done, as I have a program that periodically runs amok and starts i
-
How do I edit a paragraph style in Muse?
Is there a way to change a typeface or other detail in a paragraph stylesheet in Muse? I've tried duplicating the style, and then, when I delete the old one, I replace it with the new one. Is there a more direct way to do that?
-
Hi, so basically, as the title says, my computer is making a really loud noise as soon as I turn it on, I am presuming it is the fan. Over a month ago, my computer started to constantly crash, and about two weeks ago I took it to a Genius Bar for a d
-
Where can I get a list of Adobe Connect API error messages?
We have a test that will try to connect to an invalid Adobe Connect site and confirms that we get an appropriate error message back. Last week, the error was "The remote name could not be resolved: test.com". Now the error is "Unable to connect to
-
Maximum Number of ListPartitions on a Table.
Hi All, I am having a table say here EMP_HISTORY which is going to have 1 Billion records. ORACLE Version: 10gR2. The table structure will be as given below. EMP_HIST_ID NUMBER, EMPNO NUMBER, ENAME VARCHAR2(4000), PREV_SAL NUMBER, PREV_DEPTNO NUMBER,