The Chart User Interaction Library is a collection of tools built on top of the Chart library (QCustomPlot and QML Chart) to enhance user interaction with plots. It provides various features such as pointer tools, marker placement, area selection, zoom functionality, measurement ruler, and shapes drawing capabilities.
-
Pointer Tool: Allows users to interactively explore the plot by hovering over data points and displaying their values.
- This tool enables users to get detailed information about individual data points by simply hovering the mouse cursor over them. It enhances data exploration and analysis.
-
Marker Placement: Enables users to place markers on the plot to highlight specific data points or regions.
- Users can place markers at significant points on the plot to visually emphasize important data or trends. It helps in highlighting specific areas of interest.
-
Area Selection: Allows users to select a region of interest on the plot for further analysis.
- Users can define custom areas on the plot by dragging the mouse cursor, enabling focused analysis on specific data subsets or intervals.
-
Zoom Functionality: Provides zoom in and out functionality to focus on specific areas of the plot.
- This tool allows users to zoom in on specific regions of the plot for detailed examination or zoom out to view the entire plot. It enhances data visualization and analysis capabilities.
-
Measurement Ruler: Enables users to measure distances and angles on the plot for precise analysis.
- Users can measure distances and angles between data points or features on the plot, facilitating accurate quantitative analysis and comparison.
-
Shapes Drawing: Allows users to draw custom shapes on the plot to annotate or highlight specific features.
- This tool enables users to draw shapes such as rectangles, circles, or polygons directly on the plot to annotate or highlight specific data or regions of interest.
To use the Chart User Interaction Library in your project, follow these steps:
- Installation: Clone the repository or download the source code.
- Integration: Include the necessary files in your project and link against the required libraries (e.g., QCustomPlot).
- Initialization: Initialize the library and attach it to your QCustomPlot or QML Chart instance.
- Configuration: Customize the behavior and appearance of the user interaction tools according to your requirements.
- Integration: Integrate the user interaction tools into your application's GUI and connect them to appropriate signals and slots.
For detailed instructions on how to use each feature, refer to the documentation provided in the docs
directory.
Here are some screenshots demonstrating the various tools provided by the library:
- Pointer Tool:
- Marker Placement:
- Area Selection:
- Measurement Ruler:
- Zoom Functionality:
- Shapes Drawing:
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.