Can't
set Font size and Can't set Axis font-family.
Title:
Chart.Font.FontFamily
= "Sans-Serif";
Chart.Font.Size =
"15"; (Not working)
But isn't changing the
size, just the font-family property is working.
Axis/Axes:
SKChart.Axes["PrimaryX"].Font.FontFamily
= "Sans-Serif";
SKChart.Axes["PrimaryX"].Font.Size
= "15";
I get the following
error:
Object reference not set to
an instance of an object.
Description: An unhandled exception occurred during the
execution of the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an
instance of an object.
Source Error:
Line 25: // X.Axis Title Line 26: Chart.Axes["PrimaryX"].Title = "X-Axis Title Test"; Line 27: Chart.Axes["PrimaryX"].Font.FontFamily = "Sans-Serif"; Line 28: Chart.Axes["PrimaryX"].Font.Size = "15"; Line 29: |
Could someone provide
me a help?
Thanks in advanced.