Line chart in WAD
Hi.,
I want to create line charts in WAD. But when i execute the report it is showing in a single vertical line. But in bar charts it is showing correctly. Please guide me to create reports.
Thanks,
Venkatesh
Hi
Charts displays the data Graphically..
So Chart is the Web Item in WAD which is existing in the standard Webitems Area. Select the web item and Double click to get in to the work area and now after that we need to assign the Data Provider to that. By assigning this the data will be displayed in the Graphical mode.
and also please see the link. it would be helpful to you.To know what are the types of charts and corresponding classes, And in the link if you drill down you will see Formatting a chart using Wizard, Defining chart properties etc.,
http://help.sap.com/saphelp_nw70/helpdata/EN/d2/02223c5f00612be10000000a11402f/frameset.htm.
Hope this helps you
Many Thanks
Kiran
Similar Messages
-
Web Application Designer (Line Charts-Data Points)
Hi
I have to display the query in WEB as a Line Chart
The Query is on Cal Day Vs Mean Value
The user enter the Cal Day (From/To)..the Line chart is supposed to display mean Value on No of Cal Days users choosed.
In query created variable for Cal Day..but how can i define the Data Points for the chart in the Web designer.
Bydefault we have to specift no of data points we required..how can i change that to be based on the range user entered
Than ksHi Krishna,
When you define a chart, you define a number of series, but when you run the WAD, it takes the number of series it has the query.
Regards,
Diego -
How to combine two types of charts in WAD
Dear experts,
I need to create a chart in WAD that displays 12 columns and 1 line. This is the structure of my query:
Rows :
Operation Code
Columns :
Total Capacity
Month 1 Requirments
Month 2 Requirments
.....Month 12 Requirements
I would like to show the monthly requirements as bars, but the Total Capacity as a single straight line accross all 12 months.
I tried to create a bar chart with 13 series. 12 of the series were bars and 1 was a line, but this didn't work. I just got a single "dot" for the Total Capacity instead of a continuous line.
Any suggestions would be greatly appreciated!
Thanks,
KathrynHi Kathryn,
What i understood that your requirement is to create a graph with 12 bar columns and 1 line colmn.
this is you can achieve in the wad.
when we create a chart, in its properties, you can specify the bar or column or line for each key figure in your query. I dont exactly remeber the step number which gives you this option, but when you create chart, right click on it edit the chart, there comes a chart wizard (5-6 steps), in 3 or 4th step you have this option.
I had same requirement and did this. But rite now i dont have access to server so cant tell u exact step number.
Thanks
Dipika -
Hi Experts,
I would like to display a trend line of a key figure in the line chart just like you can do it in WAD for example based on an existing data series.
As I could not find any option in the properties of the line chart, I was wondering whether there is any workaround which you might know in order to implement such a trend analysis chart?!
Thanks in advance for any reply!
Cheers
TobiasHi,
if possible try to add trend Line value in another keyfigure ( Trend_Line ) in BEx Query .
And then Display it in Line Chart .
Or
if your Trend Line value is fix then add Text set top border & arrange it behind line chart . -
Hi,
I am developing a chart throgh WAD for purchases against vendor.
Here on X axis I want to assign Vendor & on Y axis I want to assign Purchase value against Vendor.
Please let me know how to assign values for X axis & Y axis while developing a chart in WAD.
Thanks,
PradipHi Pradip,
you need to give query as dataprovider to your chart.
Create your query with Vendor and PO value KF. Use it in WAD as DP.
Choose chart as per your requirement (Bar, Pie, lines etc).
You can refine chart by right click on it and say edit...
Check swap axis box on web item properties tab.
Hope it helps...
Regards,
Ashish -
Hello all.
I have line chart with the legend. This legend contain text with length more then 20 characters. The text cuts off by some characters from the end, for example, it should be
1. Test1Test2Test3
2. Test4Test5Test6
and it will be shown like
1. Test1Test2Te
2. Test4Test5Tes
Changes in legend config window in Answers and in file cordalayout.cxml don't work.
How else can I fix this problem?What OS is on your server? All browsers?
I'm actually getting the exact opposite situation as you, I created legend items with really long text and they aren't being truncated at all. Even if I set the truncate value. I'm on Windows Server 2K3 and the same version of OBIEE.
I'll keep testing to see if I can come up with something, but if someone else out there knows what's going on, I'd love to hear it.
-Joe -
JavaFX Update Line Chart on Tab pane
Hi all,
I am wondering can anybody help with this problem.
I have an application that can create a new tab when the LineChart FXML view is called by way of onMouseClicked event from a bar graph (using scenebuilder). However, I need this Line chart to update when the user clicks a new bar on the bar graph page to show this new data.
Initially the Line chart tab will open and display data from the first bar graph click and when I click another bar in Tab A (bar chart) if it has the same number of rows it will refresh the LineChart tab otherwise I get an error. Then if I try to load another line graph tab using a different bar graph as the source I get a child duplication error
(So tab A has a bar graph that calls tab B to represent data as a line graph, however it wont do it more then once when there is a different number of points to show)
(Also tab C, another Bar chart will not load a new tab) Exceptions below & Class detail below.
I am using clear() to empty the observable list I have which is used to populate the graph and table before it reads in the new data values
What is the proper way/ best way to dynamically add another tab and update the chart in the tab with new values? Any help would be appreciated.
I am getting the following exceptions:
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index: 11, Size: 7
at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:661)
at java.util.ArrayList.add(ArrayList.java:473)
at com.sun.javafx.collections.ObservableListWrapper.doAdd(ObservableListWrapper.java:101)
at javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:151)
at com.sun.javafx.collections.VetoableListDecorator.add(VetoableListDecorator.java:320)
at com.sun.javafx.scene.control.skin.TabPaneSkin$TabHeaderArea.addTab(TabPaneSkin.java:854)
at com.sun.javafx.scene.control.skin.TabPaneSkin$TabHeaderArea.access$500(TabPaneSkin.java:659)
at com.sun.javafx.scene.control.skin.TabPaneSkin.addTabs(TabPaneSkin.java:276)
at com.sun.javafx.scene.control.skin.TabPaneSkin.lambda$initializeTabListener$463(TabPaneSkin.java:357)
at com.sun.javafx.scene.control.skin.TabPaneSkin$$Lambda$108/885312968.onChanged(Unknown Source)
at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
at javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:155)
at java.util.AbstractList.add(AbstractList.java:108)
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:262)
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:241)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
at com.sun.glass.ui.View.notifyMouse(View.java:925)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/1146743572.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:263)
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:241)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
at com.sun.glass.ui.View.notifyMouse(View.java:925)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/1146743572.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Class Information:
//Call to the Line chart graph
n.setOnMouseClicked(new EventHandler<MouseEvent>()
@Override
public void handle ( MouseEvent e )
String s1 = dt.getXValue();
String s = s1.trim();
if ( baseHash.containsKey(s) )
String value = (String) baseHash.get(s);
String hashValue = value.substring(6, 38);
System.out.println(hashValue);
FXMLLineChartController.setHash(hashValue);
try
lineTab .setText("Line Graph (Rows Read)");
lineTab.setContent(FXMLLoader.load(getClass().getResource("/javafxapplication2/FXMLLineChart.fxml")));
Node aNode = (Node) e.getSource();
Scene scene = aNode.getScene();
thisTabPane = (TabPane) scene.lookup("#tabPane");
thisTabPane.getTabs().add(lineTab);
selectionModel.selectLast();
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
catch ( IOException ex )
Logger.getLogger(FXMLWrittenChartController.class.getName()).log(Level.SEVERE, null, ex);
//Line Chart controller
//Create the Graph
@FXML
private LineChart barChart;
public void populateGraph ()
System.out.println("Populate graph Line Chart");
final CategoryAxis xAxis = new CategoryAxis();
final NumberAxis yAxis = new NumberAxis();
ObservableList<XYChart.Series<String, Number>> barChartData = FXCollections.observableArrayList();
barChartData.clear();
baseHash.clear();
xAxis.setLabel("Query");
yAxis.setLabel("Number of Executions");
series1.setName("Data from User DB2 for Query " +getHash() );
for ( int i = 0; i < userLine.size(); i++ )
System.out.println(getHash() + " Usersize = " + userLine.size() + " base size " +baseLine.size());
series1.getData().add(new XYChart.Data<String, Number>(userLine.get(i).getBuildNumber(), (userLine.get(i).getDYN_Num_Executions())));
barChartData.add(series1);
barChart.setData(barChartData);Hi all,
I am wondering can anybody help with this problem.
I have an application that can create a new tab when the LineChart FXML view is called by way of onMouseClicked event from a bar graph (using scenebuilder). However, I need this Line chart to update when the user clicks a new bar on the bar graph page to show this new data.
Initially the Line chart tab will open and display data from the first bar graph click and when I click another bar in Tab A (bar chart) if it has the same number of rows it will refresh the LineChart tab otherwise I get an error. Then if I try to load another line graph tab using a different bar graph as the source I get a child duplication error
(So tab A has a bar graph that calls tab B to represent data as a line graph, however it wont do it more then once when there is a different number of points to show)
(Also tab C, another Bar chart will not load a new tab) Exceptions below & Class detail below.
I am using clear() to empty the observable list I have which is used to populate the graph and table before it reads in the new data values
What is the proper way/ best way to dynamically add another tab and update the chart in the tab with new values? Any help would be appreciated.
I am getting the following exceptions:
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index: 11, Size: 7
at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:661)
at java.util.ArrayList.add(ArrayList.java:473)
at com.sun.javafx.collections.ObservableListWrapper.doAdd(ObservableListWrapper.java:101)
at javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:151)
at com.sun.javafx.collections.VetoableListDecorator.add(VetoableListDecorator.java:320)
at com.sun.javafx.scene.control.skin.TabPaneSkin$TabHeaderArea.addTab(TabPaneSkin.java:854)
at com.sun.javafx.scene.control.skin.TabPaneSkin$TabHeaderArea.access$500(TabPaneSkin.java:659)
at com.sun.javafx.scene.control.skin.TabPaneSkin.addTabs(TabPaneSkin.java:276)
at com.sun.javafx.scene.control.skin.TabPaneSkin.lambda$initializeTabListener$463(TabPaneSkin.java:357)
at com.sun.javafx.scene.control.skin.TabPaneSkin$$Lambda$108/885312968.onChanged(Unknown Source)
at com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(ListListenerHelper.java:329)
at com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(ListListenerHelper.java:73)
at javafx.collections.ObservableListBase.fireChange(ObservableListBase.java:233)
at javafx.collections.ListChangeBuilder.commit(ListChangeBuilder.java:482)
at javafx.collections.ListChangeBuilder.endChange(ListChangeBuilder.java:541)
at javafx.collections.ObservableListBase.endChange(ObservableListBase.java:205)
at javafx.collections.ModifiableObservableListBase.add(ModifiableObservableListBase.java:155)
at java.util.AbstractList.add(AbstractList.java:108)
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:262)
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:241)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
at com.sun.glass.ui.View.notifyMouse(View.java:925)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/1146743572.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:263)
at javafxapplication2.FXMLExecutionChartController$3.handle(FXMLExecutionChartController.java:241)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3437)
at javafx.scene.Scene$ClickGenerator.access$7900(Scene.java:3365)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3733)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
at com.sun.glass.ui.View.notifyMouse(View.java:925)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(WinApplication.java:102)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/1146743572.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Class Information:
//Call to the Line chart graph
n.setOnMouseClicked(new EventHandler<MouseEvent>()
@Override
public void handle ( MouseEvent e )
String s1 = dt.getXValue();
String s = s1.trim();
if ( baseHash.containsKey(s) )
String value = (String) baseHash.get(s);
String hashValue = value.substring(6, 38);
System.out.println(hashValue);
FXMLLineChartController.setHash(hashValue);
try
lineTab .setText("Line Graph (Rows Read)");
lineTab.setContent(FXMLLoader.load(getClass().getResource("/javafxapplication2/FXMLLineChart.fxml")));
Node aNode = (Node) e.getSource();
Scene scene = aNode.getScene();
thisTabPane = (TabPane) scene.lookup("#tabPane");
thisTabPane.getTabs().add(lineTab);
selectionModel.selectLast();
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
catch ( IOException ex )
Logger.getLogger(FXMLWrittenChartController.class.getName()).log(Level.SEVERE, null, ex);
//Line Chart controller
//Create the Graph
@FXML
private LineChart barChart;
public void populateGraph ()
System.out.println("Populate graph Line Chart");
final CategoryAxis xAxis = new CategoryAxis();
final NumberAxis yAxis = new NumberAxis();
ObservableList<XYChart.Series<String, Number>> barChartData = FXCollections.observableArrayList();
barChartData.clear();
baseHash.clear();
xAxis.setLabel("Query");
yAxis.setLabel("Number of Executions");
series1.setName("Data from User DB2 for Query " +getHash() );
for ( int i = 0; i < userLine.size(); i++ )
System.out.println(getHash() + " Usersize = " + userLine.size() + " base size " +baseLine.size());
series1.getData().add(new XYChart.Data<String, Number>(userLine.get(i).getBuildNumber(), (userLine.get(i).getDYN_Num_Executions())));
barChartData.add(series1);
barChart.setData(barChartData); -
Adding New Data To Line Chart: New Data Does Not Inherit Previous Color Scheme
This has me very confused. Here's what's being done:
Right-click on existing chart
Select "Data..."
Add additional data in the dialog that pops up
Click check-mark
The chart appends more data to the existing lines on the line chart, as it should, however the newly created portion of one of the lines (new data) is not the same color as the line up to that point. The line color is #0084A9, but when the new data is entered the new data on that same line is represented in an ever so slightly darker blue.
Any guesses as to why that would be happening? I can manually chage it, but that's a hassle and shouldn't necessary - I wouldn't think, anyway. Any help would be appreciated.
Thanks!
Very Best,
Tanner CampbellOK looked at this closer, and seen your problem as acolor shift from PMS to a CMYK that was slightly off.
If you want to work with Hexadecimal colors, then you need to File>> Document Color Mode >> RGB, otherwise your colors won't stick but convert to cmyk and be off.
Your graph went through some editing and got corrupted. I copied and pasted your date into a new graph, and then used the testube to apply samples to get your colors back. Will send you an email with fixed file.
That’s the strangest thing. The color you’re seeing is #4e46ff, the color it should be is the color reflected in the legend: #0083a9
What’s extra interesting is that when I open it I see the legend color for the entire line. Then, when I add data, the section of the line that depicts the newly added data is #4e46ff …. So I have this two tone line. It’s intriguing that you opened this on a mac and this difference was presence, I wonder if that is in anyway a clue. Maybe the original document was created in RGB and the new data is on CMYK? Thoughts? -
What is the best way to create a SSRS 2005 Line Chart Report for a 12 month period?
I'm looking for advice on how to create a SQL Server 2005 query and line chart report for SSRS 2005.
I need to display the peak number of patients assigned to a medical practice each month for a 12 month period based on the end-user selecting a
single month and year.
I've previously created a report that displays all patients assigned to the practice for any single month but I’m looking for advice on how to
how to produce a resultset that shows the peak number of patients each month for a 12 month period. I thought about creating a query that returns the peak count for each month (based on my previously created report which displays all patients assigned to the
practice for any single month) and then use a UNION statement to join all 12 months but I'm sure that isn't the most efficient way to do this. The other challenge with this approach (twelve resultsets combined via a UNION) is that the end-user needs to be
able to select any month and year for the parameter and the report needs to display the 12 month period based on the month selected (the month selected would be the last month of the 12 month period).
For the report I’ve previously created that displays all patients assigned to the practice for any single month, the WHERE statement filters the
resultset on two fields:
Start Date - The date the patient was assigned to the practice. This field is never null or blank.
End Date - The date the patient left the practice. This field can be null or blank as active patients assigned to the practice do not have an End Date. When the patient
leaves the practice, the date the patient left is populated in this field.
Using these two fields I can return all patients assigned to the practice during Nov 2012 by looking for patients that meet the following criteria:
start date prior to 11/30/2012 (using the last day of the month selected ensures patients added mid-month would be included)
AND
end date is null or blank (indicates the patient is active) OR the end date is between 11/1/2012 -11/30/2012 (returns patients that leave during the month
selected)
Regarding the query I need to create for the report that displays the peak count each month for 12 months, I'm looking for advice on
how to count patients for each month the patient is assigned to the practice if the patient has been assigned for several months (which applies to most patients). Examples are:
John Doe has a start date of 6/01/2012 and an End Date of 10/07/2012
Sally Doe has a start date of 8/4/2012 and no End Date (the patient is still active)
Jimmy Doe has a start of 7/3/2012 and an End Date of 9/2/2012
Given these examples how would I include John Doe in the peak monthly count each month for May - October, Sally Doe in the peak monthly count for
August - December and Jimmy Doe in the peak monthly count for July – Sept if the end-user running the report selected December 2012 as the parameter?
Given the example above and the fact I'm creating a line chart I think the best way to create this report would be a resultset that looks like
this:
Patient Name
Months Assigned
John Doe
June 2012
John Doe
July012
John Doe
Aug 2012
John Doe
Sept 2012
John Doe
Oct 2012
Sally Doe
Aug 2012
Sally Doe
Sept 2012
Sally Doe
Oct 2012
Sally Doe
Nov 2012
Sally Doe
Dec 2012
Jimmy Doe
July 2012
Jimmy Doe
Aug 2012
Jimmy Doe
Sept 2012
From the resultset above I could create another resultset that would count\group on month and year to return the peak count for each month:
June 2012 - 1
July 2012 – 2
Aug 2012 - 3
Sept 2012 - 3
Oct 2012 - 2
Nov 2012 - 1
Dec 2012 - 1
The resultset that displays the peak count for each month would be used to create the line chart (month would be the X axis and the count would
be the y axis).
Does this sound like the best approach?
If so, any advice on how to create the resultset that lists each patient and each month they were assigned to the practice would be greatly appreciated.
I do not have permissions to create SPs or Functions within the database but I can create temp tables.
I know how to create the peak monthly count query (derived from the query that lists each patient and month assigned) as well as the line chart.
Any advice or help is greatly appreciated.Thanks for the replies. I reviewed them shortly after they were submitted but I'm also working on other projects at the same time (hence the delayed reply).
Building a time table and doing a cross join to my original resultset gave me the desired resultset of the months assigned between dates. What I can't figure out now is how to filter months I don't want.
Doing a cross join between my original resultset that had two dates:
08/27/2010
10/24/2011
and a calendar table that has 24 rows (each month for a two year period)
my new resultset looks like this:
I need to filter the rows in yellow as the months assigned for stage 3 that started on 8/27/2010 should stop when the patient was assigned to stage 4 on 10/24/2011.
You'll notice that Jan - Sept 2011 isn't listed for Stage 4 assigned on 10/24/2011 as I included a filter in the WHERE clause that states
the Months Assigned value must be greater than or equal to the date assigned value.
Any advice would be appreciated. -
Crystal report -How to display multiple lines in line chart?
Hi,
M struggling to display multiple lines in line chart. All the values m fetching it from database into data table in below format & data type
Category(String).....year(Int).....graph_values(Int).....table_value(String)
Test.........................2006.......... -100............................(100)
Avg..........................2006..........20................................20
Median......................2006...........5................................5
Test..........................2007...........500.............................500
Avg...........................2007............90..............................90
Median.......................2007............45..............................45
M using cross tab to display data and chart to plot line. Following fields I used in Cross tab Expert & Chart expert
Cross tab expert-
Rows u2013 category
Columns u2013 year
Summarized fields u2013 Min of table_value
In Chart Expert u2013
On Change of - Year
Show values - graph values
In cross tab m able to see the data properly but not in graph.I have three categories. Hence it should plot three lines in line chart but m able to see only one line for test category.
FYI u2013 using VS 2008 and crystal report assembly version 10.5
Urgent. Please reply soon.
Thanks
ThakurSI got the solution.
In Chart Expert - I should use
On Change of -- Year, Category
Show values -- graph values
Thanks,
ThakurS -
Is it possible to develop the control charts in WAD.
Hi Gurus and Experts
We need your suggestions to go futhure with our requirement.
Right now KPI's are currently displayed in graphical form with the
ability to drill down into WO's( Work orders) from the graph page. our
new requirement is to get exactly the same set of information captured
and presented in control chart form. This is to be an adjunct. to, not
replace, the existing graphical set of data. Upper and lower control
limits will be set initially by the business, and the same drill down
functionality should be available from the control chart. The charts
can be displayed seperately from the exisiting set of charts if this
makes it easier.
Can you please suggest us whether is it possible to develop the control
charts and also have the functoinalities of the existing dashboards
(example drill down of WO's using the control charts) in WAD or through
viusal composer
Waiting for your responses..
Thanks
Ravi...Hello dj_page!
Thanks for the answer, but I know this already.
My problem is, that the small picture in the side panel and the histogram in LR5 are bigger than in LR4.
The two pictures are showing the difference between the versions.
On the left hand (LR4) you can see a smaller preview and histogram than on the right hand (LR5).
In each version you can change the size of the side panel only as small as the preview-window is.
The pictures are also showing the smallest size of the side panel in each version. -
Hi Everyone
I don't know if this is possible or not, so I will describe it. I have a column in a table called Filing. There are currently three values in it ("Abuse", "Neglect", "Voluntary") and each record has this populated. I also have
the below slicer for the column also.
I would like to add a fourth value called "Abuse/Neglect" that would identify instances where both an Abuse and Neglect petition was filed, which is a subset of the Abuse and Neglect records in the Filing column.
My question is, is it possible to create a line chart that has the 4 Filing possibilities: "Abuse", "Neglect", "Voluntary", "Abuse/Neglect" as the Series/Legend in the line chart?
The problem is that there are records that are more than one category: Abuse or Neglect records can also be Abuse/Neglect.
PaulHi Paul,
According to your description, there is a column with the values ("Abuse", "Neglect", "Voluntary") in your table, now what you need to is that add another value "Abuse/Neglect" in this column, and then use it
as Series/Legend in the line chart, right?
In this case, you can add calculated column to your table based on your logic. A calculated column is a column that you add to an existing PowerPivot table. Instead of pasting or importing values in the column, you create a DAX formula that defines
the column values. The calculated column can be used in a PivotTable, PivotChart, or Power View report as you would any other data column. Please refer to the link below to see the details.
https://msdn.microsoft.com/en-us/library/gg413492%28v=sql.110%29.aspx?f=255&MSPPError=-2147217396
Regards,
Charlie Liao
TechNet Community Support -
Using Repeater to generate dynamic line charts
I have a call to a webservice that returns an array of
arrays. The outside array relates to the "YEAR", and the inside
arrays have 1 element for each "MONTH". I want to create a line
chart that has a line for each year, with the x-axis having months
across the bottom.
I can create this just fine by coding the appropriate number
of mx:LineSeries tags in my code.
However, I have a case where the data that I get back from
the webservice could have up to 5 years (I'm only coding for 3).
So, I'd like to find a way to dynamically generate an mx:LineSeries
instance for each one of these years. I can't seem to get this to
work with using a Repeater.
This code isn't mine (got it from the docs), but it matches
with what i'm trying to do exactly:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.charts.events.ChartItemEvent;
import mx.collections.ArrayCollection;
[Bindable]
public var expenses_2005:ArrayCollection = new
ArrayCollection([
{Year: 2005, Expense: "Taxes", Amount: 2000},
{Year: 2005, Expense: "Gas", Amount: 100},
{Year: 2005, Expense: "Food", Amount: 200}
[Bindable]
public var expenses_2006:ArrayCollection = new
ArrayCollection([
{Year: 2006, Expense: "Taxes", Amount: 2500},
{Year: 2006, Expense: "Gas", Amount: 400},
{Year: 2006, Expense: "Food", Amount: 300}
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
expenses_2005,
expenses_2006
]]></mx:Script>
<mx:LineChart dataProvider="{expenses}"
showDataTips="true">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{expenses.getItemAt(0)}"
categoryField="Expense" title="Expense"/>
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis displayName="Amount"/>
</mx:verticalAxis>
<mx:series>
<mx:LineSeries xField="Expense" yField="Amount"
displayName="2005" dataProvider="{expenses.getItemAt(0)}"/>
<mx:LineSeries xField="Expense" yField="Amount"
displayName="2006" dataProvider="{expenses.getItemAt(1)}"/>
</mx:series>
</mx:LineChart>
</mx:Application>
How can I now change this to dynamically build the necessary
numbers of LineSeries?Hi jsevlie,
What I usually do in this case is to create multiple
LineSeries objects in ActionScript as soon as I get in the data.
Here is some code to get you started:
private var theChart:ColumnChart = new ColumnChart;
function drawGraph(){
this.theChart.dataProvider = this.theData;
var ctgAxis:CategoryAxis = new CategoryAxis();
ctgAxis.dataProvider = this.theData;
ctgAxis.categoryField = "0";
this.theChart.horizontalAxis = ctgAxis;
var series:Array = new Array();
for(var i:int=0; i < this.columnSpan; i++){
var colSeries:ColumnSeries = new ColumnSeries();
colSeries.yField = String(i+1);
if(i==0){
colSeries.displayName = "Revenue";
colorSrs(colSeries, 0x3F48F3);
else if(i==1){
colSeries.displayName = "Profit";
colorSrs(colSeries, 0xE9C836);
else{
colSeries.displayName = "Cost";
colorSrs(colSeries, 0x6FB35F);
series
= colSeries;
this.theChart.series = series; -
Creating a Line Chart using a user enter target amount.
Hi all,
I'm trying to create a chart that will use Total Sales and Annual Target(Goal).
I get the Total sales to work just fine. It's just getting the Annual Target(Goal), which is a parameter, to come into the chart. Right now they are doing this in Excel and the Target line goes from 0 to 8,000,000.
So how do i get that to work in my Crystal Report?
So when the report is working correctly i should have a Line Chart with two Lines. Line 1 "The Target", Line 2 "Total Sales".
ThanksHi
Create a formula field and store the parameter there.
Now put this formula field in "On change of" in the Chart expert.
e.g. I have a parmeter on country and I have a chart which shows the last year sales year wise for the countries.
I create a formula field and put the below formula:
stringvar x = {?countryparameter};
Now i put this formula field in On change of so when i run the report i select the required country.
Hope this helps!!
Regards
Sourashree -
How not to see values of a serie in a 2D line chart
Hello,
I have 3 series in a 2d line chart. There are two series which are the thresholds and one serie for the averages. Thresholds are fix/stable numbers which correspond to straight lines, however the averages as you can image dynamic and changing. What I want is to see the values of averages but not the values of the straight lines. I cannot find a spesific option for the series, I can always show/hide values which does not work for me.
Thank you from now.Hi mertov,
You can find anychart's documentation in their website. The document that shows and explains all the XML tags anychart uses is the XML reference.
Best regards,
Sergio
Maybe you are looking for
-
Retirement of SQL Azure Federations
I've built my start-up on top of Federations, in part because it was Microsoft's best practice. Now, they are going away, and I feel completely screwed over. I have a few questions. 1. Is it true that all Federations are going away in 1 year, or is t
-
Relinking project files on imovie 9.0.9
I have some projects i want to go back to and re-edit (which wasn't expected before). As it wasn't expected, i deleted the event that contained the original video files and now i have the yellow triangle with '!' on all of my projects. there is a pag
-
EA3: Connections not saved
I can create new connections in EA3 to oracle databases and everything works fine. But when I restart EA3 all the connections are gone. No errors are logged Versions: I am on Windows XP Professional Version 2002 Service Pack 2 Database: Oracle9i Ente
-
Moving Average Price for Material in Dual Currencies
Does a report exist that will display the Moving Average Price of a material using split valuation in more than one currency? For example: Part Number '12345' Qty 10, Moving Average Price (EUR), Moving Average Price (USD), Total Value (EUR), Total V
-
915p Combo and Leadtek Winfast PVR2000 - No Sound on live playback
Has anyone attempted to install a (PCI card) PVR2000 onto a 915p Combo board and utilise the onboard sound rather than a dedicated Sound Card? I've attached the PVR card to the motherboard via the CD-In connector (JAUD1 or something), but only get so