Replacing JavaFX BarChart in a Stack Pane - user-interface

I have a JavaFX Stack Pane that contains three objects: a Button, a BarChart<String, ? extends Number>, and a ComboBox. The data displayed in the chart is dependent on the current selection of the ComboBox. On the event that another option is selected in the ComboBox, I would like to reload the chart's data and automatically display the updated chart. Is there an easy way to replace/update the chart that is in my Stack Pane with the new chart?

Related

Report item width of items in TreeView via NM_CUSTOMDRAW?

Is there a WM_MEASUREITEM type item for custom drawing treeview items via NM_CUSTOMDRAW? I'd like to be able to report the width the item will actually be once I paint it in the post paint so a horizontal scrollbar doesn't show up when not needed (because I truncate the text with a ...).
Thanks.
AFAIK, there is no equivalent of WM_MEASUREITEM for a TreeView control.

Select and highlight on a kendo chart

Is there anyway to select, drag and highlight a specific area on an area/line chart? I have a chart plotted with a series. I want to allow the user to left-click and drag an area on that chart and just return the select categoryAxis values (i.e. from/to). Is this possible?

How to create a dropdown in Xamarin.Forms that displayes different content per item?

How am i going to create a dropdown that displays different content depending on the selected item? For example, there are 3 items on a dropdown namely Chart1, Chart2 and Chart3. When i choose Chart1 it should display a Pie Chart. When i choose Chart2 it should display a Bar Grap. When i choose Chart3 it should display a Line Graph. Is that even possible to do? Thank you.
I assume you already have a way to create your charts?
If not there are plenty of 3rd party options out there for charting.
To have the three separate views in the one page as you are trying to do
all you would need to do is create three separate ContentView with your three different charts. Use a RelativeLayout or an AbsoluteLayout to lay the three ContentView over the top of each other.
I'll assume you are using a Picker control as your drop down.
if so then just use the picker.SelectedIndexChanged event to change the visibility of each of the chart ContentView according to which option was selected

Simple d3/dimple drill down example with bar chart

I'm looking to build a clickable drill-down bar chart of sorts using dimple or nvd3.
I can create a bar chart no problem, but what I'd like to do is make each bar clickable to allow me to call a Javascript function which will load JSON to populate a separate chart (essentially doing a drill-down across multiple charts)
The problem however seems to be that I can only access the value or label in the series to the item I've selected, and in order to load the next chart I would need something distinct... another field from my recordset or even the index of the bar being clicked on.
Being new to dimple, I'm looking for a simple example but everything I'm seeing seems to involve drill-downs in the same chart or examples showing far more features than I need.
I'm just looking for a way to bind an event to each item in the series, and to use data during the click event that would be unique to that data point, but not used in the chart.
You can add events to a series using the series.addEventHandler method documented here.
This example is essentially a drill through but using the hover event instead of the click.

clickable link inside rich:tooltip

I have a data table, and on one of the columns, i have tooltip for specific information about the specific rows, now i am trying to place a link inside the tooltip, and that should be clickable (which should navigate to another page),
so here i am unable to click the link inside the tooltip, because when we try to move mouse inside tooltip the tooltip also moving,
and i want the tooltip to be displayed on mouseover as usual and also when i click a specific row that tooltip should stay there and it should allow me to click that link.
can some one help me out for this?
You should set the followMouse attribute to false

Resources