How to use Syncfusion's SfChart with 2015⌶ ?
Posted: Tue Jul 08, 2014 2:28 pm
Hello, I would like to use 2015⌶ to populate a FastLineSeries of a SfChart from Syncfusion. This is the code that I use:
However I am getting a DOMAIN ERROR when trying to set the binding with 2015⌶. What is it that I am doing wrong ?
Thanks in advance.
sfChartBindDemo
sfDir←'Syncfusion/4.5/' ⍝ Location of the Syncfusion dll's
⎕USING←'Syncfusion.UI.Xaml.Charts,',sfDir,'Syncfusion.SfChart.WPF.dll'
⎕USING,←'System.Windows,WPF/PresentationFramework.dll' 'System'
sfChart←⎕NEW SfChart
sfChart.PrimaryAxis←⎕NEW NumericalAxis
sfChart.PrimaryAxis.(Minimum Maximum)←0 10
sfChart.SecondaryAxis←⎕NEW NumericalAxis
sfChart.SecondaryAxis.(Minimum Maximum)←0 10
fastLineSeries←⎕NEW FastLineSeries
fastLineSeries.XBindingPath←⊂'C1'
fastLineSeries.YBindingPath←⊂'C2'
fastLineSeries.StrokeThickness←2
mat←(⍳10),[1.5]2+0.5×⍳10
⎕EX'ns'
ns←⎕NS¨10⍴⊂''
ns.C1←mat[;1]
ns.C2←mat[;2]
options←2 2⍴'C1'Int32'C2'Int32
fastLineSeries.ItemsSource←options(2015⌶)'ns'
sfChart.Series.Add fastLineSeries
win←⎕NEW Window
win.Content←sfChart
win.Show
However I am getting a DOMAIN ERROR when trying to set the binding with 2015⌶. What is it that I am doing wrong ?
Thanks in advance.