Separation of Concerns

Mar 18, 2011 at 3:08 PM

If you're like me you probably got knee deep into setting presentation properties for the Artix.ZingChart object and then stepped back and said "WTF?". My front end developer is going to hate the fact that the background color is compiled into a .NET assembly. I'm going to put up a sample that demonstrates how to get around this. I'm not sure it will work with the current assembly, but if it doesn't I'll upload a new one along with the new sample code. Basically you'll set all of the display properties in your view or presentation layer and only inject JSON for the dynamically generated portions, i.e. values and x-axis (scale-x). This way you don't have to recompile to, say, change the background color of the plot area. I'd love to hear your thoughts.