I Have an asset with with a name, that contains a value for each day (in 7 days)
List <ChartData>list = xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846), assetName);
so here i am saving for each asset the day, the name and the value it has on that day
no i want to make a stackedbar, where the value for each asset is given on day 12/1/2011, so i want all assets like
xbox, telephone, tv, .. give a value in a stackedbar for 12/1/2011 in the stackedbar chart.
How can i do this,
this is what i tried
this gives me a list from ChartData class, and i put it in a List of ChartTot.
the itemsSource contains a list (ChartTot) that contains a list of ChartData
But i get no chart ???
List <ChartData>list = xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846), assetName);
so here i am saving for each asset the day, the name and the value it has on that day
no i want to make a stackedbar, where the value for each asset is given on day 12/1/2011, so i want all assets like
xbox, telephone, tv, .. give a value in a stackedbar for 12/1/2011 in the stackedbar chart.
How can i do this,
this is what i tried
List<ChartTot> data =
new
List<ChartTot>();
XMLData xData =
new
XMLData();
XMLData xData2 =
new
XMLData();
data.Add(
new
ChartTot(xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846),
"Stereo"
)));
data.Add(
new
ChartTot(xData2.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846),
"Gas"
)));
radChart1.ItemsSource = data;
public
class
ChartTot
{
private
List<ChartData> cd =
new
List<ChartData>();
public
ChartTot(List<ChartData> list)
{
this
.cd = list;
}
}
public
class
ChartData
{
public
String Naam {
get
;
set
; }
public
double
Waarde {
get
;
set
; }
public
DateTime DezeW {
get
;
set
; }
public
ChartData()
{
}
}
(xData.GetData(DateTime.FromOADate(40839), DateTime.FromOADate(40846),
"Stereo"
)
this gives me a list from ChartData class, and i put it in a List of ChartTot.
the itemsSource contains a list (ChartTot) that contains a list of ChartData
But i get no chart ???