wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

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

Closed JigsSodvadiya closed 8 years ago

JigsSodvadiya commented 8 years ago

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

Please log issues against the correct repo. Fayde.DataVis is also experimental at this time.

BSick7 commented 8 years ago

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

JigsSodvadiya commented 8 years ago

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

JigsSodvadiya commented 8 years ago

Hi dear,

Can you provide small code for LineStyle in Chart?

BSick7 commented 8 years ago

Moving to https://github.com/wsick/Fayde.DataVis/issues/1