# TemperatureChart **Repository Path**: cookies_code/TemperatureChart ## Basic Information - **Project Name**: TemperatureChart - **Description**: 可以绘制图表体温单的控件,可以用于展示体温,心率,等各种曲线数据。 - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2025-12-30 - **Last Updated**: 2026-05-27 ## Categories & Tags **Categories**: charting-components **Tags**: 图表, chart, 温度图表, Winforms ## README # TemperatureChart TemperatureChart is a simple C#-based temperature charting tool designed to display medical data related to patient body temperature. This project supports rendering charts for body temperature, respiration rate, blood pressure, intake and output, bowel movements, urination, allergy information, and more, with comprehensive model support and graphical rendering logic. ## Project Structure - **Demo**: The main demonstration project, featuring a visual interface and control buttons. - `Form1.cs`: Main interface logic for loading and displaying charts. - **Model**: Data models defining patient information and temperature-related structures. - `TemperatureModel.cs`: Patient basic information model. - `TemperatureDetailModel.cs`: Detailed temperature data model. - **View**: Chart rendering components. - `TemperatureChart.cs`: Core chart rendering class providing multiple drawing methods. - **Other Files**: Project configuration and resource files. ## Features - Supports rendering temperature curves (Celsius and Fahrenheit). - Supports rendering medical data such as respiration rate, blood pressure, and intake/output volumes. - Provides rich graphical elements including points, lines, and text annotations. - Supports exporting charts as Bitmap images. ## Usage Examples 1. **Load Default Chart** Click the button in the demo interface to load the default temperature chart and associated medical data. 2. **Custom Data Rendering** Use methods from the `TemperatureChart` class to pass custom temperature and medical data to generate corresponding charts. ```csharp TemperatureChart chart = new TemperatureChart(); Bitmap bitmap = chart.DrawString("Patient Information", temperatureModel); ``` 3. **Draw Temperature Curve** Use the `DrawDotAndLine` method to render temperature curves, supporting various data types (e.g., `Dictionary`). ## Development Environment - .NET Framework - C# - Windows Forms ## Dependencies - GDI+ for graphical rendering. - Windows Forms for UI display. ## Contribution Guidelines Contributions and suggestions are welcome! Please follow these steps: 1. Fork this project. 2. Create a new branch. 3. Commit your changes. 4. Submit a Pull Request. ## License This project is licensed under the MIT License. See the LICENSE file for details. --- For further feature documentation or extension support, please review the source code or submit an issue.