Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 13:34
    Melv1no edited #1142
  • Oct 14 13:34
    Melv1no edited #1142
  • Oct 14 13:33
    Melv1no commented #1142
  • Oct 14 13:33
    Melv1no commented #1142
  • Oct 14 13:33
    Melv1no commented #1142
  • Oct 14 13:33
    Melv1no commented #1142
  • Oct 14 13:33
    Melv1no edited #1142
  • Oct 14 13:33
    Melv1no edited #1142
  • Oct 13 12:12
    Melv1no edited #1142
  • Oct 13 12:12
    Melv1no edited #1142
  • Oct 13 12:12
    Melv1no commented #1142
  • Oct 13 12:12
    Melv1no commented #1142
  • Oct 13 12:11
    Melv1no closed #1142
  • Oct 13 12:11
    Melv1no closed #1142
  • Oct 13 09:25
    Melv1no commented #1142
  • Oct 13 09:25
    Melv1no commented #1142
  • Oct 13 08:13
    Melv1no opened #1142
  • Oct 13 08:13
    Melv1no opened #1142
  • Oct 08 20:52
    SumekQQ opened #1141
  • Oct 08 20:52
    SumekQQ opened #1141
Nniks19
@nniks19_twitter
can someone help please? Since all creators of this project wont answer :(
this wont work in winforms
Error CS1061 'UserControl' does not contain a definition for 'SelectionMode' and no accessible extension method 'SelectionMode' accepting a first argument of type 'UserControl' could be found (are you missing a using directive or an assembly reference?)
KiwiLostInMelb
@KiwiLostInMelb
@swraza Sorry mate. I dont need to use that feature so have not tried it.
KiwiLostInMelb
@KiwiLostInMelb
@nniks19_twitter Tooltips - this works for me.
LiveCharts.Wpf.DefaultTooltip myDefaultToolTip = new DefaultTooltip(); myDefaultToolTip.SelectionMode = TooltipSelectionMode.SharedXValues; myDefaultToolTip.ShowSeries = true; myDefaultToolTip.ShowTitle = true; lcChartTime.DataTooltip = myDefaultToolTip;
StevenSagull
@StevenSagull
Hello, is it possible in winforms, when I put 50points into chart, I want after .Add that it automatically be zoomed in and show only 10 last points?
KiwiLostInMelb
@KiwiLostInMelb
@StevenSagull yes. You can populate the series and set the XAxis.SetRange(start, end) to zoom to the data you want.
StevenSagull
@StevenSagull
Nice, solved.
Sebastian Strobl
@sebaJoSt
Hi, my y-Axis shows the values "0.1", "0.2", "0.30000000000000002" and "0.4". How can I avoid this double error in the axis? I can not format the axis, because I never know what values are coming and how many decimale places are best for the plot
StevenSagull
@StevenSagull
Can I shift values a bit to left on chart? I have candlestick and line series, and I want to center points of line series at the left side of each candlestick, not in middle as is now
boonwin
@b00nwin
Can I have individual labels for each series? right now i can make 2 series and its not shown correctly https://i.imgur.com/SMHPfX8.gif
Yu-Hsin Lu
@kerol2r20
Hello, I want to use Live chart as a 2D coordinate system.
Mean that origin point is at (0, 0) and other point around origin point.
How can I draw a X=0 and Y=0 line to enhance the relationship between points with origin point?
Wajahat
@swraza
Hello Everyone. I am trying to differentiate the scatter series by certain data attribute and doing this right now
new ScatterSeries
{
Title = "Series C",
Values = new ChartValues<ObservablePoint>(),
PointGeometry = DefaultGeometries.Triangle,
StrokeThickness = 2,
Fill = Brushes.Transparent
}
But the problem is that "DefaultGeometries.Triangle" only supports 4 different symbols what if I have more than 4?
Articrox
@Articrox
Hello Everyone! I'm currently doing a simple joystick viewer application using WindowsForms and I would like to do a chart to show the joystick movement. for example a dot or a cross that starts in the center (0,0) and as I move the joystick the dot (or cross) would move with it.
now I have all the code to normalize my area and move the dot
I just need a direction as to what type of chart and how to set the chart up
a very similar situation as that of @kerol2r20
Daniel Mittelstadt
@DMtsdt
@Articrox Basic Line Chart should do the trick
You can set up secondary axes with differently styled dividers at 0,0 as a "crosshair"
If you mean to do a point that simply tracks the joystick movement a simple ObservablePoint should do
Set the LineSeries fill to transparent and LineSmoothness= 0
Articrox
@Articrox
@DMtsdt Thank you , I'm just walking to the office, I'll give it a go
Borjamao
@Borjamao
Hi, i'm playing with LegendLocation and would like to place it on "Top-Right", in order to place some other elements below, but i'm not beeing able to get it working... Is it possible?
Pedro G. Dias
@digitaldias
Hello, I'm trying to create some vertical bar charts with high and low watermark lines (min-max), the idea being that the columns should all be within min/max values. I haven't been able to find where to create such - is it just a case of adding the min/max values as an extra seriescollection?
Daniel Huinda
@DannyTheSloth
Is it possible to change the color of the heatmap displayed on the GeoMap?
atjbat
@atjbat
Anyone know how I can change the bar white of material chart red a sx of example?
image.png
KHALED LAKEHAL
@KHALED-LAKEHAL
hello set space bettwen axis bottom label and last line
Capture.PNG
spaseur04
@spaseur04
I am trying to create a vertical bar chart shows the number of times a particular square is chosen in a random selection of squares. So the chart would change after each iteration or random square was chosen. I am looking a routine that would have 100s of thousands of iterations and thus the vertical bar chart would be changing 100s of thousands of times. I do I do this? I looked at the sample creating the vertical bar chart, but not sure how I update the chart after each iteration. Be sure to answer in very simple terms. I am a novice trying to learn how to do charts in WPF and C#. Thanks
12 replies
Martin Wollmann
@doc_mw_twitter
Hello Communicate, i'm stucked a little bit, it's a very simple thing actually, but i can't find it. I have changed the default legend to have a bit formatted on my chart, but what i can't do is getting a bit more space between two entries. Can anyone assist on this? My current Code
<lvc:CartesianChart.ChartLegend>
<lvc:DefaultLegend BulletSize ="25" FontSize="{Binding Source={x:Static p:Settings.Default}, Path=FontSizeNames, Mode=TwoWay}" MinWidth="500" Padding="20" UseLayoutRounding="False" IsEnabled="False" TextOptions.TextFormattingMode="Display" HorizontalContentAlignment="Stretch" />
</lvc:CartesianChart.ChartLegend>
Giacomo Nasi
@giacomo.nasi_gitlab
Good Evening, in the picture below you can see the edges (in red) of the graph graphic component, but the plot is actually smaller than the red margin (green edges). How can I get dimensions and coordinates of the green rectangle?
Thank you in advance,
Giacomo
image.png
Dominic Saladin
@DSaladinCH
Good afternoon, is it possible to show only selected dates in a CartesianChart? I would like to show only the weekdays (without saturday and sunday) of multiple weeks.
Thanks,
Dominic
AlbertLiv
@AlbertLiv

Good night, i don't know in wich part you can see (or something related to) how to graph a Data Table of Sql, but in this case the data table is generated in real time. I need to use mappers.xy, the part of constant change or something like that?

(I already try to do it, the table generated in a using method, but when i tried to graph it, saving the data in a list, it doesn't work) (I reaally feel lost in this)

Martin Wollmann
@doc_mw_twitter

grafik.png

@AlbertLiv
Have your tried it like this?
may that give you a hint. I use a Datatable to and filling my chart by converting the values per column into ChartValues
To update the chart you need to re-apply the Datacontext to the Datatabl

Good night, i don't know in wich part you can see (or something related to) how to graph a Data Table of Sql, but in this case the data table is generated in real time. I need to use mappers.xy, the part of constant change or something like that?

(I already try to do it, the table generated in a using method, but when i tried to graph it, saving the data in a list, it doesn't work) (I reaally feel lost in this)
Have your tried it like this?
may that give you a hint. I use a Datatable to and filling my chart by converting the values per column into ChartValues
To update the chart you need to re-apply the Datacontext to the Datatable

githubmkk
@githubmkk
Is there anyway to add scrollbar to legends in livecharts. currently on my chart I have 100+ series in my seriescollection when I enable legends then legends take a lot of space. it will be good if legends can show scroll bar
Giacomo Nasi
@giacomo.nasi_gitlab
Hi can you help me with my question of 9th february? thank you
Martin Wollmann
@doc_mw_twitter
@giacomo.nasi_gitlab the green part is probably the location of your series collection itself.
Giacomo Nasi
@giacomo.nasi_gitlab
@doc_mw_twitter thank you, but is there a way to get its coordinates and size?
Dominic Saladin
@DSaladinCH
Does anyone know the answer to my question of february 9th?
Wajahat
@swraza
Hello I want to have my yaxis title to be rotated at 0, I found Axis.UpdateTitle() method but not able to use it, can anyone share an example of it?
Gigante
@GiganteX
Greetings. How to add visual elements to a cartesian chart? can't find any example code except this XAML: https://lvcharts.net/App/examples/v1/wpf/Visual%20Elements , I suppose the VisualElements should bind to a VisualCollection in the code-behind, but it just crashes. I need the cs code.....
Wajahat
@swraza

@GiganteX, I was facing the same issue. Here you can find a number of livecharts examples. https://github.com/Live-Charts/Live-Charts/tree/6723ec02f05ce8aeee0a1891c597cf04dcb0bc34/Examples/Wpf/CartesianChart/UIElements

Let me know if you are still unable to do it

Gigante
@GiganteX
Hey Wajahat, thanks! I'll take a look!
MikeeOxley
@MikeeOxley

Hi, I am new to live charts, new to WPF too. I am trying to show a graph that has inspections by date.
Left Axis must have the dates the inspection are on and bottom must have the inspection number on it ... 1,2,3,4,5 it never goes past 10.

I have SQL table that has Inspection Number field and date field, I want to get that and show it on my chart but cant seem to find any tutorial that teaches me how to use Select * form elements where id='1' and return the 5 or 10 inspection dates and show it on my graph as Planned inspection vs Actual Inspections on line chart.

Can anyone please point me to a good tutorial that is easy to understand please. Thank you

Omar Ibrahim
@OSMIbra
@MikeeOxley Which part exactly are you struggling with right now? Extracting the data from the database?
MikeeOxley
@MikeeOxley
I can extract the inspection number, but my graph does not show on the left axis what date it was.
MikeeOxley
@MikeeOxley
or x axis doe snot show dates
Richard Pinter
@freamdev
hello, anyone managed to get around this problem? Live-Charts/Live-Charts#609 geared:ScatterPlot only draw circles for me
or alternatively a work around where i can use a geared and nongeared chart type at the same time would also work
Omar Ibrahim
@OSMIbra
@MikeeOxley Show your code.