-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
y-axis title above the chart and custom content display #1675
Comments
Hi, Query 1: Need to place the y-axis above the chart. We would like to let you know, we cannot position both the x-axis and y-axis horizontally. To transpose the axis, you can use the transposed property to switch the horizontal and vertical axes. However, we cannot position both the x-axis and y-axis horizontally. If you want to move axis within the plot area and expand the series rendering area, we suggest moving the axis tick position and axis label position inside by using the tickPosition and labelPosition respectively. Query 2: Need to add custom content (weather icons) above the chart. We have implemented a logic to enable users to toggle between hourly and daily data representations on a chart. This functionality is facilitated by a boolean variable, _showHourlyData, which determines the type of data to display. When the user interacts with the provided buttons, this variable is updated accordingly, triggering a re-render of the chart with the selected interval. If hourly data is chosen, the function iterates through each hour within a specified week, while for daily data, it iterates through each day. DateTimeAxis adjusted to display appropriate time intervals based on the user's selection by using the interval and intervalType properties. We have shared a code snippet and a sample for your reference below. You can modify the sample based on your needs. Code snippet: ` List generateChartData( if (showHourlyData) { return data; ` Regards, |
Please reopen this ticket, if you need any further assistance on this. |
1:Can the content of the y-axis on the chart be placed above the chart ? This is because the width of the display on mobile phones is limited, and expanding the display area of the chart could be helpful.
2:Is it possible to expand custom content, such as displaying weather icons at fixed intervals above the chart?
The text was updated successfully, but these errors were encountered: