Changing Legend in the Future of Dynamic Data Display wpf -


i have been using future d3 can not figure out how change series legend. in older builds legend changed like:

    graf = plotter.addlinegraph(new compositedatasource(xsrc, plot),                  new pen(brush, 4),                  new pendescription("mytext" )); 

but here function call addlinegraph takes object argument , hence 1 can not specify pendescription... please know how this? question asked before here did not answers. highly appreciated. have spend lot of time on , dont want change other library because of small issue...

the above doesn't work recent (2016) v0.4.0.

v0.4.0 uses following syntax:

// access legend class using microsoft.research.dynamicdatadisplay.charts;  ... snip ... linegraph linegraph = new linegraph(datasource); linegraph.linepen = new pen(brushed.green, 1.0); legend.setdescription(linegraph, "the line label"); plotter.children.add(linegraph); ... snip ... 

v0.3.0 used following syntax:

plotter.addlinegraph(datasource, pen, marker, new pendescription("the line label")); 

ref: changing , setting legend (linegraph) future of dynamicdatadisplay

post http://d3future.codeplex.com/discussions/635917 provided core fix.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -