# Chart rendering fails due to the "wrong sign in 'by' argument" error

**URL:** <https://community.exploratory.io/t/chart-rendering-fails-due-to-the-wrong-sign-in-by-argument-error/3851>\
**Category:** Issues\
**Created:** [January 23, 2025, 12:53am UTC](https://community.exploratory.io/t/chart-rendering-fails-due-to-the-wrong-sign-in-by-argument-error/3851 "2025-01-23T00:53:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1](https://community.exploratory.io/user_avatar/community.exploratory.io/user1/32/11_2.png) [@user1](https://community.exploratory.io/u/user1)\
**Post date:** [January 23, 2025, 12:53am UTC](https://community.exploratory.io/t/chart-rendering-fails-due-to-the-wrong-sign-in-by-argument-error/3851/1 "2025-01-23T00:53:15Z")

</div>

## Problem

Chart rendering fails due to the “wrong sign in ‘by’ argument” error.

## Cause

This error occurs when the “Upper Range” or “Lower Range” values set in the category settings are inconsistent with the actual range of the data. Specifically:

- The “Upper Range” value is smaller than the minimum value in the actual data range.
- The “Lower Range” value is larger than the maximum value in the actual data range.

For example, if the X-axis uses “Age” (with a data range of 0–100), the following Category settings would cause the error:

- Setting the “Upper Limit” to “-10”.
- Setting the “Lower Limit” to “1000”.

## Solution

Open the Category Setting dialog and set appropriate values to the **Upper Range** and **Lower Range**.
