i have problem when change color of series in cartesianchart, color of legend doesn't change. created custom legend, explained in part "customize tooltip" without success.
i tried modify stroke value using line code :
customerslegend.get().series[0].stroke = ....
but, again, without success.
a year old question, here go.
if have series defined in xaml, set attribute stroke="blue"
if you're creating series dynamically, add property myseriesstroke
, bind series
private _myseriesstroke brush public property myseriesstroke brush return _myseriesstroke end set(byval value brush) if _myseriesstroke isnot value _myseriesstroke = value raisepropertychangeevent("myseriesstroke") end if end set end property ... sub addseries() ... myseries.setbinding(lineseries.strokeproperty, "myseriesstroke") ... end sub ... sub changestroke(byref brush brush) myseriesstroke = brush end sub
if post code, can answer more op.
Comments
Post a Comment