Submit a ticketCall us

AnnouncementsChange Is Inevitable

Get valuable help when it comes to tracking and monitoring changes. SolarWinds® Server Configuration Monitor (SCM) is designed to help you: detect, track, and receive alerts when changes occur, correlate system performance against configuration changes, compare server and application configuration against custom baselines, and verify application and system changes.

Learn more.

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