Adjust the Y-coordinate in pixels on an amchart graph

I am currently working on a chart that features icons displayed as simple lines with bullets. The data in the chart looks something like this: [["18-07-2021",64], ["19-07-2021",64],["20-07-2021",64], .... ] I have manually set the Y value to 64 (maximum data value), but I am looking for a way to adjust the line with icons so that it is positioned in pixels offset from the top border of the chart. This way, the icon line will always be at the same height, regardless of changes in the data (which can affect the maximum Y chart value). Is there a method or technique that would allow me to achieve this? Thank you.

https://i.sstatic.net/QSMY2.png

Answer №1

To adjust the gap between the maximum value and the top of the chart, you can utilize the min/max properties. Here's an example:

valueAxis.min = 10;
valueAxis.max = 150;
valueAxis.strictMinMax = true;

For more information, refer to the documentation at

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is it possible to manipulate the render order in Three.js CSS3DRenderer?

Is there a way to make certain elements appear on top of everything in the scene, regardless of their distance from the camera? I've attempted using zIndex and z-index on the DOM elements that the CSS3DObjects are based on, but it hasn't had any ...

Choose the option in real-time with Jquery

I'm currently developing a dynamic HTML for Select Option as seen below: item += "<td class='ddl' style='width:40%;'>"; item += "<select>" item += " <option id='list' name='selector' value=" + se ...

Why is Ajax sending back a null response?

I'm attempting to retrieve some information, but when using AJAX, it's only returning an empty array. Here is the AJAX code: $.ajax({ url:"user_profile_upload.php", type: "POST", data: { data : 'sss&apos ...

Closing a webview completely in React JS

I am currently developing a website using React JS that will be integrated with an Android/iOS application and function like a webview. Within the website, I have implemented a cross button. When this button is clicked, I need to trigger a native bridge ...

Difficulties encountered with camera rotation in Threejs

I have encountered a well-documented issue that has been extensively researched and attempted to resolve. Despite trying various solutions, I am unable to make the final step work successfully. My situation involves a 3D object with an added camera, where ...

The search box output will be the same as the JSON result

I have a server in Node.js that is able to read and process a JSON file containing various data, including unique user IDs. I have incorporated a search box into my HTML page, and I am seeking assistance with creating a jQuery method (which will require AJ ...

What steps can I take to ensure that my initial Ajax Get request is completed before proceeding with the next one?

Having two methods that return promises is not enough. I am attempting to make the second method execute only after the first one has obtained and manipulated data, but I have struggled to find a solution despite others asking this question before me. Here ...

What is the best way to execute an inline function two times in a row

I'm currently utilizing Gametime.js to create a real-time world chat feature. All messages are kept in a database for storage. Interestingly, PubNub, which is used by Gametime.js, seems to require messages to be sent twice for them to actually go th ...

Node.js AWS deployment issue: Module not found

I'm in the process of deploying a basic Node.js application on elastic beanstalk. All the necessary dependencies are outlined in my package.json file, and the app is set to listen on port 8081 through an nginx proxy. However, I've encountered an ...

Encountering an issue while trying to generate a React app with the command npx create-react-app

Recently venturing into the world of React, I have successfully created several apps. However, my latest attempt to create a new app has hit a snag. Currently running Node version v15.6.0 and npm 7.4.0 on Windows 10. The file tree I'm currently worki ...

How do I access the variable value from inside a function in jQuery?

Is it possible to extract the value from 'a = entry.username' outside of the function? I need to retrieve a value that is already being looped inside the function. $('#btnlogin').click(function(){ var usernamelogin = $(&apos ...

IE throwing an invalid argument error when making an AJAX request

I have a strange issue with my ajax request - it works perfectly fine in all browsers except for IE, specifically IE10! The error message I am encountering in the IE console is as follows: SCRIPT7002: XMLHttpRequest: Network Error 0x80070057, Invalid arg ...

Tips for organizing divs once another div has been hidden using jquery

I am working towards implementing a live result filter feature. There are three filters available: Good fit, bad fit, and scheduled. When the "Good fit" filter is clicked, it should display panels with the class "good_fit_panel". Let's assume there ar ...

Automatically selecting the map center while using the Drawing Manager feature for placing markers

My application utilizes the Google Drawing Library. When a user clicks on the Add New Marker Button, the Drawing Manager is activated allowing the user to generate a marker by clicking anywhere on the map. Subsequently, the following listener is executed: ...

Assign the form's data to a backbone model in order to invoke a REST service

I am a newcomer to backbone. I have set up a form. <form name="searchForm" method="POST" id="CandidateSearch" ` enctype="application/json" accept-charset="utf-8"> <br> <br> <div class="container" style="backgro ...

Error: The protractor module is not defined, please check the stack

I'm currently experimenting with AngularJS tests using Protractor. Here is the stacktrace I have at the moment: Starting selenium standalone server... Selenium standalone server started at http://192.168.0.150:51197/wd/hub F Failures: 1) E2E: The ...

Creating a fresh JSON object while making a glob request in Express/Node.js

As a newcomer to JavaScript, I'm grappling with an issue related to storing the state of an object and the intricacies of nested function calls. My task involves iterating through a directory filled with numerous JSON files, loading them one by one, ...

Tips for customizing the appearance of the day button in a React Material-UI date picker

In my React project, I am using material-ui date picker and I am looking for a way to customize the styling of the day buttons. Specifically, I want to change the text color of the available days. By default, as seen in the screenshot, the text color is bl ...

Transferring data from ExpressJs to React application

Using multer, I am able to handle multipart form datas and store them in both the server and MongoDB. When registering a user, I save the image as a string in MongoDB, even though the actual image is located in /public/img/. const body = req.body; con ...

Eliminate any null strings from an object by comparing the object's previous state with its updated state

I am currently implementing an exemptions scheduler using react-multi-date-picker. The react-multi-date-picker component is integrated within a react-table in the following manner: const [data, setData] = useState(0); const [dateValues, setDateValues] = us ...