Jump to content
Software FX Community

nabils

Members
  • Posts

    9
  • Joined

  • Last visited

nabils's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. nabils

    Tooltip issues

    Thank you. The tooltipservice would be a really useful feature to add. Is there any way to disable the tooltip completely? I would normally do this through the tooltip service. POC.zip
  2. nabils

    Tooltip issues

    1) How do I reduce the tooltip delay? I tried the below but it didn't work. <ToolTipService.InitialShowDelay>0</ToolTipService.InitialShowDelay> <ToolTipService.BetweenShowDelay>0</ToolTipService.BetweenShowDelay> 2) When I have a pie chart with 1 slice the slice is not highlighted when the tooltip appears. However it works when when I have > 1 slice. Thanks
  3. The legend seems to position itself underneath the title when using DockPanel.Top. Can I get them on the same line? Title on the left and legend on the right.
  4. How do I position the legend? The help docs mention a property of legendbox called Dock to allow you to dock the legend around the chart but I cannot find this. I need to display the legend at the top of the chart and make the items flow horizontally rather than vertically? Is this possible?
  5. When I display a pie chart using the "Pie3" template from your samples with the below code (see Code 1) I get the same problem as the forum post titled "3D Pie edge disappears with certain values". The problem only happens when one item is added to the list. Another problem I have is with labelling (see Code 2). The labels are positioned correctly on the chart with anything above 1 item in the list. For one item I get the below error (see error 1) and the label is displayed on the top left. Are there any fixes available for these two bugs? Thanks for your excellent support so far. Error 1 System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='Infinity' BindingExpression:Path=X; DataItem='P' (HashCode=47980820); target element is 'ContentPresenter' (Name=''); target property is 'Left' (type 'Double') System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='Infinity' BindingExpression:Path=Y; DataItem='P' (HashCode=47980820); target element is 'ContentPresenter' (Name=''); target property is 'Top' (type 'Double') Code 1 ChangeTemplate("Pie3"); List<TestItem> values = new List<TestItem>(); values.Add(new TestItem { Name = "Test", Value = 500 }); chart1.ItemsSource = values; Code 2 <cfx:SeriesAttributes BindingPath="Value"> <cfx:SeriesAttributes.PointLabel> <cfx:PointLabelAttributes Visibility="Visible"> <cfx:PointLabelAttributes.Template> <DataTemplate> <Label Content="{Binding Path=DataItem.Name}" Background="Transparent" Foreground="Black" FontSize="8"/> </DataTemplate> </cfx:PointLabelAttributes.Template> </cfx:PointLabelAttributes> </cfx:SeriesAttributes.PointLabel> </cfx:SeriesAttributes>
  6. nabils

    3D Charts

    Thanks AngleX and AngleY are working great. However Perspective property in View3D seems to be a bool and not a double. Also the depth property does not have any effect when changing it. I need to be able to zoom in to the chart.
  7. nabils

    3D Charts

    How do I reposition the camera on a 3dview for a pie chart by code? I have used a number of WPF chart controls from all your competitors and your control seems to be the best by far. Looking forward to the final release. Thanks
  8. Thank you for your quick response. I was passing in incorrect data. Do you have a sample for the crosstabtransform? Thanks
  9. I am trying to bind to an IEnumerable<T> using chart.ItemsSource = data where data is the IEnumerable<T>. The xaml I am using is: <cfx:Chart Gallery="Pie" Name="chart"> <cfx:SeriesAttributes BindingPath="{Binding Path=Value}"/> </cfx:Chart> As soon as the chart.ItemsSource = data line is executed I get a recurring exception which hangs the whole application (see below). What am I doing wrong? Thanks System.NullReferenceException: Object reference not set to an instance of an object. at k.a(Object A_0, Type A_1, String A_2) at at.a(Object A_0, Object A_1, Type A_2, Int32 A_3) at cb.a(Object A_0, Object A_1, Type A_2, Int32 A_3) at ChartFX.WPF.DataValues.a(IEnumerable A_0, Int32 A_1, Int32 A_2, NotifyCollectionChangedAction A_3, IIndexedCollection`1 A_4, ah A_5) at ChartFX.WPF.DataValues.a(IEnumerable A_0, Int32 A_1, Int32 A_2, NotifyCollectionChangedAction A_3, ah A_4) at ChartFX.WPF.DataValues.a(ah A_0) at ChartFX.WPF.Chart.at() at ChartFX.WPF.Chart.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Control.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Border.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.Controls.Grid.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
×
×
  • Create New...