Submit a ticketCall us

WebinarFREE IT Monitoring Webcast

Don’t miss out on our webcast, Essential IT Monitoring with SolarWinds ipMonitor, where we will show you how to keep an eye on your IT environment from one centralized, affordable, and lightweight monitoring tool: SolarWinds® ipMonitor®.

Register now.

Home > Success Center > Network Performance Monitor (NPM) > NPM - Knowledgebase Articles > 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

Tags

Classifications

Public