Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > Network Performance Monitor (NPM) > Change the Custom Chart size

Change the Custom Chart size

Table of contents

Updated

Overview

This article shows how to modify the size (height and width) of Custom Charts.

Note: This is not applicable to NPM 12 as the .CS files are no longer available.

Environment

NPM 11.5.3 and earlier versions

Steps

  1. Copy the CustomChart.aspx.cs located in C:\inetpub\SolarWinds\Orion\Charts to your desktop as a backup.
  2. Open CustomChart.aspx.cs in Notepad.
  3. Find the following:

    /// Gets the width of the chart.

        /// </summary>

        protected int Width

        {

            get

            {

                string value = string.Empty;

                if (!IsPostBack)

                {

                    value = Request["Width"];

                }

                else

                {

                    value = chartWidth.Text;

                }

     

     

                int width = 0;

                if (Int32.TryParse(value, out width) && width > 0)

                {

                    return width;

                }

                else

                {

                    return 640;

                }

            }

        }

  4. Replace the 640 to what you need.
  5. Do the same for the height of the chart if needed  
  6. Save the file.

 

Last modified
18:56, 27 Jul 2016

Tags

Classifications

Public