c# - Logarithmic Vertical and Horizontal Axes lines in MS Chart Control -



c# - Logarithmic Vertical and Horizontal Axes lines in MS Chart Control -

the image presents logarithmic graph. want create similar graph using ms chart control. know there way convert normal graph logarithmic graph not able create vertical , horizontal axes lines (light grayness in color) similar graph below.

you seek set chart's axes islogarithmic property true , set minorgrid follows:

private static void setupaxis(axis axis) { // set logarithmic scale mode: axis.islogarithmic = true; // enable minor grid lines: axis.minorgrid.enabled = true; // set color of minor grid lines: axis.minorgrid.linecolor = color.gray; // set inverval 1: axis.minorgrid.interval = 1; // enable major grid lines: axis.majorgrid.enabled = true; // if not set, major grid lines defaulted black color }

usage:

chartarea area = chart1.chartareas[0]; setupaxis(area.axisx); setupaxis(area.axisy);

c# mschart

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -