从sql检索值的折线图图 [英] Line Graph Plotting for the values retrieve from sql
问题描述
我正在尝试在ChartPlotter中绘制折线图,以获取从表中检索的值.该表有两个列,我将它们用作lineGraph中x和y轴的坐标.我正在使用Template绘制图形,目的是为具有2个列的许多其他表绘制图形.
我正在指定ItemTemplate和Itemsource.但是它没有画线.而是根据表中的行数绘制图形数.
我想为具有2列和许多行的表绘制单个图形.
请帮助我
在此先感谢
Hi,
I am trying to Plot Line Graph in ChartPlotter for the value retrieved from Table. The table has two colums which i am using as coordinates for x and y axis in lineGraph. I am using Template for plotting the graph with the intention of plotting graphs for many other tables having 2 colums.
I am specifying the ItemTemplate and Itemsource. But its not plotting line . Instead its plotting the number of graphs depending on the number of the rows in table.
I want to plot a single graph for a table having 2 columns and many rows.
Please help me in this
Thanks in advance
推荐答案
您没有提到正在使用哪个图形库,但通常需要将数据绑定到Series
,并映射适当的数据属性.
You didn''t mention which graph library you''re using, but usually, you need to bind the data to a Series
, and map the appropriate data properties.
嘿,约翰,
我正在使用dynamicDataDisplay.dll
hey John,
I am using dynamicDataDisplay.dll
这篇关于从sql检索值的折线图图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!