Choyee
-
Posts
14 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Choyee
-
-
I tried the method with two parameters as 'chart1.LegendBox.ItemAttributes[chart1.AxisX.Sections, i].Visible = false' and it worked fine. I just don't get it.
And, I'm troubling with a Pie chart, now. One Pie chart, one series, right?
I'm working with 10~15 points for the chart. Normally, 3~5 items take more than 90% of the chart area and I don't want to display other items in the LegendBox. So, I tried 'KeyLabels' property as written in the API Reference because it seems to be the only possibility since there is just one series, but it didn't work and showed the same build error.
Any solutions for the Pie chart?
Also, is there any way to display 2 X 4 multiple panes? I could handle the vertically arranged panes but I couldn't find a clue to display them horizontally as ChartFX WPF provided.
Thanks in advance.
-
I went through the same problem recently. Try this:
chart1.LegendBox.ItemAttributes[chart1.AxisX.Sections, i].Visible = false;
Try not to use ItemAttributes with one parameter. It caused a build error.
Hope it helps.
-
Hi, I'm charting with several series and a couple of AxisSections for the X axis.
I don't want to display these AxisSections' information in the LegendBox, so I tried this:
chart1.LegendBox.ItemAttributes[chart1.AxisX.Sections].Visible = false;
But, it didn't work. It just caused a buil error. I assume the problem is, unlike the API Reference says, this LegenItemAttributesCollection of the LegendBox requies 'ILegendBoxItemCollection' not 'ILegendItemCollection' for the collection parameter.
I tried the exact same statement in a debug mode and it worked then, which makes me more confused.
Am I using this wrong or is this because I'm using a wrong build version, 7.0.3754.185555?
Thanks in advance.
-
-
I've attached a chart image file. I'd like to see the other information as x-axes.
As a result, I'd like to display data change patterns for each 'DataIndex' with its related information such as 'ExtractTime' and 'Place'.
Thanks.
-
I'm trying to display unsorted dataset using CrosstabTransform. From what I understand, CrosstabTransform.RowPath is used as an X-Axis and ColumnPath as Serieses for the transformed chart.
For example, I use following CLR object for dataset:
class MyData
{
public string DataIndex {get; set;}
public double DataValue {get; set;}
public string ConditionKey {get; set;}
public DateTime ExtractTime {get; set;}
public string Place {get; set;}
...
}
It goes like this, there are fixed 20 'DataIndex' items and each 'ConditionKey' has a set of 'DataIndex' with their 'DataValue's. So, one 'ConditionKey' item has 20 'DataVlaue's and same 'Place' and 'ExtractTime'. I'm not quite sure whether I'm drawing a right picture here.
Anyway, I use 'DataIndex' for the ColumnPath, 'ConditionKey' for the RowPath and 'DataValue' for the ValuePath so that it looks like each 'DataIndex' as an individulal series. It's supposed to give how each 'DataIndex' has changed its 'DataValue' for each 'ConditionKey'. So far it worked as I expected.
What I've been trying to do is to display additional information like 'Place' and 'ExtractTime' as additional x-axes. Is it possible? Or, any idea?
Thanks in advance.
p.s. Followings are sample dataset:
CondtionKeyDataIndexDataValueExtractTimePlace OriginIndex102009-12-01Level1 OriginIndex20.82009-12-01Level1 OriginIndex30.62009-12-01Level1 OriginIndex4102009-12-01Level1 OriginIndex502009-12-01Level1 OriginIndex65002009-12-01Level1 OriginIndex75002009-12-01Level1 OriginIndex85002009-12-01Level1 OriginIndex927002009-12-01Level1 OriginIndex1023002009-12-01Level1 OriginIndex11602009-12-01Level1 OriginIndex1282009-12-01Level1 OriginIndex13292009-12-01Level1 OriginIndex14202009-12-01Level1 OriginIndex1582009-12-01Level1 OriginIndex1602009-12-01Level1 OriginIndex17342009-12-01Level1 OriginIndex1882009-12-01Level1 OriginIndex19352009-12-01Level1 OriginIndex20352009-12-01Level1 1stIndex102009-12-07Level3 1stIndex20.42009-12-07Level3 1stIndex30.42009-12-07Level3 1stIndex4102009-12-07Level3 1stIndex502009-12-07Level3 1stIndex6292009-12-07Level3 1stIndex7292009-12-07Level3 1stIndex8292009-12-07Level3 1stIndex918002009-12-07Level3 1stIndex1018002009-12-07Level3 1stIndex11402009-12-07Level3 1stIndex1282009-12-07Level3 1stIndex13352009-12-07Level3 1stIndex14202009-12-07Level3 1stIndex15102009-12-07Level3 1stIndex1602009-12-07Level3 1stIndex17412009-12-07Level3 1stIndex18152009-12-07Level3 1stIndex19702009-12-07Level3 1stIndex20702009-12-07Level3 -
It helps a lot, thanks.
By the way, is there any plan for providing built-in toolbar as in ChartFX 7 in your WPF roadmap?
It was a huge merit handling chart properties using the toolbar and the context menu in ChartFX 7.
-
Hi,
I've been working on implementing toolbar items for WPF charts as in ChartFX 7.
I manged to export chart images as one of image file formats, but I couldn't find a way to exporting them to the clipboard.
If I could find the properties related to the currently displayed chart image, I thought I might use the ApplicationCommands.Copy.Execute() method to copy to the clipboard.
Any suggestions?
Thanks.
-
Hi,
Apparentely, memory leaks under following circumstances. (I'm using build version .3565.)
1. When AllSeries.Marker.Visibility == Visibility.Visible,
2. When dealing with more than 50 points per series. (I tested with each 50 points for 3 series)
3. When displaying each series in a different pane. (I used 3 vertical panes)
Then, change visibility of 'DataView' and 'PointLabels' couple of times it always ends up leaking memory and showing abnormal CPU usage patterns.
At first, I thought I was using something wroing in my project since I made a user control that includes a chart and a toolbar similar to the one in ChartFX 7.
So, I simply added the context menu to the reference project "AdditionalAxesAndPanes" with minimal changes to see how it goes.
I also added 40 more data to the 2008's source. Could you check the attatched project and tell me how to avoid this problem?
Thanks,
Choyee.
-
Hi,
I've installed WPF version 8.0.3422 but the build version .3488 is the one I'm using becasue there was an issue about using conditional attributes in real time action.
Anyway, I've completed my project and used VS Click Once method to deploy it.
Build the deploy version was successful, but the problem occured when installing the deployed application.
The message shows "The application requires that assemly ChartFX.WPF Version 8.0.3422.28509 be installed in the Global Assembly Cache(GAC) first."
I tested to install this in my local machine that I've been using for the project, which means 3422 has been already installed.
How shold I interprete this and more importantly what should I do to solve this propblem?
Thanks in advance.
And one mroe thing, ever since I used hotfix build version .3488, chart wizard has disappeared in a chart control. Is this normal?
-
Hi,
I've isolated this case in a separate application which is attatched.
Have you tried to remove the first item in an ObservablCollection array not only adding new one? Try attatched app with and without the statement for removing the first item in the array.
(The first item has to be removed to keep the size of displaying points.)
I don't know why but it seems the execption is thrown when the first item is removed.
Without using condiotional attributes, it really works fine.
What should I do to avoid this conflict?
Thank,
Choyee
-
Hi,
I made a real time chart binding ItemsSource to a ObservablCollection with a limited buffer size.
I used Dispatcher.Invoke method for removing and adding items to keep the buffer size.
It worked fine until I added a conditional attribute to the chart.
It seemed it throws this TargetInvocationException when a new data meets the condition.
Am I using this wrong?
int buffersize = 20;
ObservableCollection <ChartData> DataSource = new ObservableCollection<ChartData>();
delegate void RemoveAtListArrayDelegate(int index);
delegate void AddListArrayDelegate(ChartData cd);
public void SetRunChart()
{
RunChart.Animation.OnDataChange = false;
RunChart.ItemsSource = DataSource;
SeriesAttributes sa = new SeriesAttributes("Data");
sa.Gallery = Gallery.Line;
RunChart.Series.Add(sa);
RunChart.AxisX.Labels.BindingPath = "XValue";
RunChart.AxisY.ForceZero = true;
}
public void AddData(ChartData cd)
{
if (DataSource.Count > buffersize)
{
RemoveAtListArrayDelegate removeItem = new RemoveAtListArrayDelegate(DataSource.RemoveAt);
Dispatcher.Invoke(removeItem, new object[] { 0 });
}
AddListArrayDelegate addItem = new AddListArrayDelegate(DataSource.Add);
Dispatcher.Invoke(addItem, new object[] { cd });
}
Thanks.
p.s.
I used Google Chrome for the last post "ZoomMode.Off, it didn't work", but apparently Chrome didn't support editing tool bar as IE does.
Sorry for the messed message. It's about implementing a countinuous zooming method.
-
Hi,
I've been working on continuous zooming method as ChartFX7 toolbar's zoom menu does.
I figured that if I want to zoom some specific area of the chart I have to first set "Chart.Zoom.Mode = ZoomMode.Selection" then drag the mouse where I want to be zoomed.
Here's the question, what if I clear the zoom mode with "ZoomMode.Off" to zoom out before dragging the mouse when ZoomMode is stiil Selection..
It's like this.
Step 1 : chart1.Zoom.Mode = ZoomMode.Selection;
Step 2 : You drag the mouse on the chart.
Step 3 : Use step 1 in a MouseUp event handler to keep zoom mode as Selection.
private void RunChart_MouseUp(object sender, MouseButtonEventArgs e)
{
if (_isZoomMode)
{
RunChart.Zoom.Mode = ZoomMode.Selection;
RunChart.Zoom.Style = ZoomStyle.Map;
}
}
Step 4 : You clear the zoom mode using "ZoomMode.Off;"
In this case, the chart keeps its zoom state as selection mode.
What should I do to zoom out?
Charting spectrogram
in Windows Forms
Posted
I'm working on 2D spectrogram. (Imagine the ColorDialog which shows continuos changes of color)
The point is I'd like to generate a chart with no space between points.
A stacked bar chart of which AllSeries.Volume is 100 is all I can think of. Any suggestions?
Thanks in advance.