ASP.NET MVC:
<svg width="400" height="110">
<pattern id="pattern"
x="0" y="0" width="24" height="24"
patternUnits="userSpaceOnUse">
<rect fill="rgba(159, 188, 191, 0.4)" x="0" width="12" height="12" y="0" />
<rect fill="rgba(159, 188, 191, 0.4)" x="12" width="12" height="12" y="12" />
</pattern>
</svg>
@(Html.EJ().Chart("container")
//...
.Loaded("chartLoaded")
)
function chartLoaded(sender) {
$("#"+this.svgObject.id +"_Series0")[0].setAttribute("fill", "url(#pattern)");
} |