Skip to content

Trying to have zero padding around the chart #4325

Closed Answered by danielchalmers
danielchalmers asked this question in Q&A
Discussion options

You must be logged in to vote
Grid = new Grid
{
    Padding = new Padding
    {
        Bottom = 0,
        Left = 0,
        Right = 0,
        Top = -15,
    },
},
Chart = new Chart
{
    Height = "100%",
    ParentHeightOffset = 0,
},
Xaxis = new XAxis
{
    Labels = new XAxisLabels
    {
        HideOverlappingLabels = true,
        Rotate = 0,
        Style = new AxisLabelStyle
        {
            FontSize = "9px",
        },
    },
},
Yaxis = new List<YAxis>
{
   new YAxis
   {
        Labels = new YAxisLabels
        {
            OffsetX = -15,
        },
   },
},

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danielchalmers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant