wsick / Fayde.DataVis

Controls library for data visualization for Fayde.
MIT License
3 stars 0 forks source link

Change Line Color in Chart "Fayde.DataVis" #1

Open BSick7 opened 8 years ago

BSick7 commented 8 years ago

Moving here from https://github.com/wsick/Fayde/issues/241

BSick7 commented 8 years ago

@JigsSodvadiya

Hi,

1) How we can change line Color in Change "Fayde.DataVis".

2) Is it possible to Binding Minimun and Maximum Property. Source Code Below

dv:CartesianChart.YAxis

/dv:CartesianChart.YAxis

BSick7 commented 8 years ago

Every Series (the base of LineSeries) has a SeriesPresenter (LineSeriesPresenter). The LineSeriesPresenter allows you to set the LineStyle.

BSick7 commented 8 years ago

@JigsSodvadiya

Hi, Thanks Dear. When I set Style Globally than it work but when I set style to particular series than Fayde crash. ::Style Code are Below::

   <Style x:Key="LineSeries_QuotePrice" TargetType="dv:LineSeriesPresenter">
      <Setter Property="LineStyle">
        <Setter.Value>
          <Style TargetType="Polyline">
            <Setter Property="Stroke" Value="Red" />
            <Setter Property="StrokeThickness" Value="1" />
          </Style>
        </Setter.Value>
      </Setter>
    </Style>

:: Code for Line Series::

<dv:LineSeries ItemsSource="{Binding ProductBid_ChartData}" IndependentValuePath="Category" DependentValuePath="Value_LivePrice">
  <dv:LineSeriesPresenter LineStyle="{StaticResource LineSeries_QuotePrice}"/>
</dv:LineSeries>

Please guide me.

BSick7 commented 8 years ago

You are setting the LineStyle to a style for LineSeriesPresenter. You should either

or

or

BSick7 commented 8 years ago

Hi dear,

Can you provide small code for LineStyle in Chart?