广告
返回顶部
首页 > 资讯 > 移动开发 >Android图表库HelloChart绘制多折线图
  • 245
分享到

Android图表库HelloChart绘制多折线图

2024-04-02 19:04:59 245人浏览 薄情痞子
摘要

本文实例为大家分享了Android图表库HelloChart绘制多折线图的具体代码,供大家参考,具体内容如下 一、效果图 二、实现步骤 1.添加依赖库 compile 'com.G

本文实例为大家分享了Android图表库HelloChart绘制多折线图的具体代码,供大家参考,具体内容如下

一、效果图

二、实现步骤

1.添加依赖库

compile 'com.GitHub.lecho:hellocharts-android:v1.5.8'

2.布局文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="Http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <include
        android:id="@+id/include_id"
        layout="@layout/titlelayout_theme"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:padding="4dp"
            android:orientation="horizontal">

            <View
                android:layout_width="6dp"
                android:layout_height="6dp"
                android:background="#BF0815" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="10sp"
                android:text="噪音"
                android:layout_marginLeft="5dp"
                android:textColor="@color/common_gray3"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:padding="4dp"
            android:orientation="horizontal">

            <View
                android:layout_width="6dp"
                android:layout_height="6dp"
                android:background="#088B05" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="10sp"
                android:text="温度"
                android:layout_marginLeft="5dp"
                android:textColor="@color/common_gray3"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:padding="4dp"
            android:orientation="horizontal">

            <View
                android:layout_width="6dp"
                android:layout_height="6dp"
                android:background="#0862D8" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="10sp"
                android:text="pm2.5"
                android:layout_marginLeft="5dp"
                android:textColor="@color/common_gray3"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:padding="4dp"
            android:orientation="horizontal">

            <View
                android:layout_width="6dp"
                android:layout_height="6dp"
                android:background="#552705" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="10sp"
                android:text="风速"
                android:layout_marginLeft="5dp"
                android:textColor="@color/common_gray3"/>

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:gravity="center"
            android:padding="4dp"
            android:orientation="horizontal">

            <View
                android:layout_width="6dp"
                android:layout_height="6dp"
                android:background="#6221D1" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="10sp"
                android:text="pm10"
                android:layout_marginLeft="5dp"
                android:textColor="@color/common_gray3"/>

        </LinearLayout>
    </LinearLayout>

    <lecho.lib.hellocharts.view.LineChartView
        android:id="@+id/line_chart"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />


</LinearLayout>

3.Activity类

package com.aldx.hccraftsman.activity;

import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.aldx.hccraftsman.R;
import com.aldx.hccraftsman.application.Application;
import com.aldx.hccraftsman.base.BaseActivity;
import com.aldx.hccraftsman.entity.DustLineChart;
import com.aldx.hccraftsman.entity.DustLineChartModel;
import com.aldx.hccraftsman.entity.TempChartData;
import com.aldx.hccraftsman.JSONparse.jsONObject;
import com.aldx.hccraftsman.jsonparse.ReflectUtil;
import com.aldx.hccraftsman.okHttp.LoadingDialoGCallback;
import com.aldx.hccraftsman.utils.api;
import com.aldx.hccraftsman.utils.Constants;
import com.aldx.hccraftsman.utils.LogUtil;
import com.aldx.hccraftsman.utils.Utils;
import com.lzy.okGo.OkGo;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.qQtheme.framework.picker.DatePicker;
import cn.qqtheme.framework.picker.DateTimePicker;
import lecho.lib.hellocharts.gesture.ZoomType;
import lecho.lib.hellocharts.model.Axis;
import lecho.lib.hellocharts.model.AxisValue;
import lecho.lib.hellocharts.model.Line;
import lecho.lib.hellocharts.model.LineChartData;
import lecho.lib.hellocharts.model.PointValue;
import lecho.lib.hellocharts.model.ValueShape;
import lecho.lib.hellocharts.model.Viewport;
import lecho.lib.hellocharts.view.LineChartView;
import okhttp3.Call;
import okhttp3.Response;



public class DustLineChartActivity extends BaseActivity {

    @BindView(R.id.line_chart)
    LineChartView lineChart;
    @BindView(R.id.back_iv)
    ImageView backIv;
    @BindView(R.id.layout_back)
    LinearLayout layoutBack;
    @BindView(R.id.title_tv)
    TextView titleTv;
    @BindView(R.id.right_tv)
    TextView rightTv;
    @BindView(R.id.layout_right)
    LinearLayout layoutRight;

    private String projectId;
    private List<Integer> colors = new ArrayList<>();
    private List<TempChartData> listTemp = new ArrayList<TempChartData>();//数据
    private List<AxisValue> mAxisXValues = new ArrayList<AxisValue>();   //x轴方向的坐标数据
    private List<AxisValue> mAxisYValues = new ArrayList<AxisValue>();            //y轴方向的坐标数据
    private List<Float> distanceList = new ArrayList<Float>();
    private boolean hasAxes = true;       //是否有轴,x和y轴
    private boolean hasAxesNames = true;   //是否有轴的名字
    private boolean hasLines = true;       //是否有线(点和点连接的线,选择false只会出现点)
    private boolean hasPoints = true;       //是否有点(每个值的点)
    private ValueShape shape = ValueShape.CIRCLE;    //点显示的形式,圆形,正方向,菱形
    private boolean isFilled = false;                //是否是填充
    private boolean hasLabels = true;               //每个点是否有名字
    private boolean isCubic = false;                 //是否是立方的,线条是直线还是弧线
    private boolean hasLabelForSelected = false;       //每个点是否可以选择(点击效果)
    private LineChartData data;          // 折线图封装的数据类

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_dust_line_chart);
        projectId = getIntent().getStringExtra("projectId");
        ButterKnife.bind(this);

        initView();
        initData();
        doRequest();
    }

    private void initData() {
        //颜色集合
        colors.add(0xff0862D8);
        colors.add(0xff6221D1);
        colors.add(0xff552705);
        colors.add(0xff088B05);
        colors.add(0xffBF0815);
    }

    private void initView() {
        titleTv.setText("扬尘监测折线图");
        Calendar calendar1 = Calendar.getInstance();
        String sss = Utils.DATE_SIMPLE_FORMATER.format(calendar1.getTime());
        rightTv.setText(sss);
        layoutRight.setVisibility(View.VISIBLE);

    }

    public void doRequest() {
        OkGo.get(Api.GET_MONITOR_MONTH_BY_PROJECT_ID)
                .tag(this)
                .params("projectId", projectId)
                .params("time", rightTv.getText().toString())
                .execute(new LoadingDialogCallback(this, Constants.LOADING_TXT) {

                    @Override
                    public void onSuccess(String s, Call call, Response response) {
                        DustLineChartModel dustLineChartModel = null;
                        try {
                            dustLineChartModel = (DustLineChartModel) ReflectUtil
                                    .copy(DustLineChartModel.class,
                                            new JSONObject(s));
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                        if (dustLineChartModel != null) {
                            if (dustLineChartModel.code == Api.SUCCESS_CODE) {
                                if (dustLineChartModel.data != null) {
                                    setLineChartData(dustLineChartModel.data);
                                }
                            } else {
                                Application.showCodeToast(DustLineChartActivity.this, dustLineChartModel.code);
                            }
                        }

                    }

                    @Override
                    public void onError(Call call, Response response, Exception e) {
                        super.onError(call, response, e);
                        Application.showResultToast(DustLineChartActivity.this, call, e);
                    }

                });
    }

    private void setLineChartData(List<DustLineChart> dlcList) {
        listTemp.clear();
        mAxisXValues.clear();
        mAxisYValues.clear();
        distanceList.clear();
        float yMax = 0;
        try {
            int xCount = 0;
            Calendar curCalendar = Calendar.getInstance();
            String curDateStr = Utils.DATE_SIMPLE_FORMATER.format(curCalendar.getTime());
            if (rightTv.getText().toString().equals(curDateStr)) {
                xCount = curCalendar.get(Calendar.DAY_OF_MONTH);
            } else {
                Date queryDate = Utils.DATE_FORMATER.parse(rightTv.getText().toString() + "-01");
                Calendar queryCalendar = Calendar.getInstance();
                queryCalendar.setTime(queryDate);
                xCount = queryCalendar.getActualMaximum(Calendar.DAY_OF_MONTH);
            }
            LogUtil.e("xCount=" + xCount);
            for (int j = 1; j <= xCount; j++) {
                boolean isFinded = false;
                for (DustLineChart dlc : dlcList) {
                    String tempStr = dlc.time;
                    if (!Utils.isEmpty(tempStr)) {
                        Date tempDate = Utils.DATE_FORMATER.parse(tempStr);
                        Calendar tempCalendar = Calendar.getInstance();
                        tempCalendar.setTime(tempDate);
                        if (j == (tempCalendar.get(Calendar.DAY_OF_MONTH))) {
                            isFinded = true;
                            if (Utils.toFloat(dlc.pm2) > yMax) {
                                yMax = Utils.toFloat(dlc.pm2);
                            }
                            if (Utils.toFloat(dlc.pm10) > yMax) {
                                yMax = Utils.toFloat(dlc.pm10);
                            }
                            if (Utils.toFloat(dlc.windspeed) > yMax) {
                                yMax = Utils.toFloat(dlc.windspeed);
                            }
                            if (Utils.toFloat(dlc.temperature) > yMax) {
                                yMax = Utils.toFloat(dlc.temperature);
                            }
                            if (Utils.toFloat(dlc.noise) > yMax) {
                                yMax = Utils.toFloat(dlc.noise);
                            }
                            listTemp.add(new TempChartData(j + "", Utils.toFloat(dlc.pm2), Utils.toFloat(dlc.pm10),
                                    Utils.toFloat(dlc.windspeed), Utils.toFloat(dlc.temperature), Utils.toFloat(dlc.noise)));
                            break;
                        }
                    }
                }
                if (!isFinded) {
                    listTemp.add(new TempChartData(j + "", 0.0f, 0.0f, 0.0f, 0.0f, 0.0f));
                }
            }

            //设置x轴坐标 ,显示的是时间5-1,5-2.。。。
            mAxisXValues.clear();
            for (int i = 1; i <= xCount; i++) {      //mClockNumberLength
                mAxisXValues.add(new AxisValue(i).setLabel(i + ""));
            }

            mAxisYValues.clear();
            float temp = (yMax + 10) / 10;
            for (int k = 0; k < 10; k++) {
                float ttt = temp * k;
                float fff = Utils.toFloat(((int)ttt)+"");
                mAxisYValues.add(new AxisValue(fff).setLabel("" + (int)fff));

            }

            //获取距离
            for (int i = 1; i <= listTemp.size(); i++) {
                float apart = i;//得到的拒Y轴的距离
                distanceList.add(apart);
            }
            //存放线条对象的集合
            List<Line> lines = new ArrayList<Line>();
            lines.clear();
            //把数据设置到线条上面去
            for (int i = 0; i < 5; ++i) {
                List<PointValue> values = new ArrayList<PointValue>();
                for (int j = 0; j < listTemp.size(); ++j) {
                    //i=0是最高温度的线,i=1,是最低温度的线
                    //PointValue的两个参数值,一个是距离y轴的长度距离,另一个是距离x轴长度距离
                    if (i == 0) {
                        values.add(new PointValue(distanceList.get(j), listTemp.get(j).pm2).setLabel("" + listTemp.get(j).pm2));
                    } else if (i == 1) {
                        values.add(new PointValue(distanceList.get(j), listTemp.get(j).pm10).setLabel("" + listTemp.get(j).pm10));
                    } else if (i == 2) {
                        values.add(new PointValue(distanceList.get(j), listTemp.get(j).windspeed).setLabel("" + listTemp.get(j).windspeed));
                    } else if (i == 3) {
                        values.add(new PointValue(distanceList.get(j), listTemp.get(j).temperature).setLabel("" + listTemp.get(j).temperature));
                    } else if (i == 4) {
                        values.add(new PointValue(distanceList.get(j), listTemp.get(j).noise).setLabel("" + listTemp.get(j).noise));
                    }

                }

                Line line = new Line(values);
                //设置线条的基本属性
                line.setColor(colors.get(i));
                line.setShape(shape);
                line.setCubic(isCubic);
                line.setFilled(isFilled);
                line.setHasLabels(hasLabels);
                line.setHasLabelsOnlyForSelected(hasLabelForSelected);
                line.setHasLines(hasLines);
                line.setHasPoints(hasPoints);
                line.setStrokeWidth(1);
                line.setPointRadius(3);
                lines.add(line);
            }

            data = new LineChartData(lines);

            if (hasAxes) {
                Axis axisX = new Axis();
                Axis axisY = new Axis().setHasLines(true);
                if (hasAxesNames) {
                    axisX.setName("日期");
                    axisY.setName("数值");
                }

                //对x轴,数据和属性的设置
                axisX.setTextSize(8);//设置字体的大小
                axisX.setHasTiltedLabels(false);//x坐标轴字体是斜的显示还是直的,true表示斜的
                axisX.setTextColor(Color.BLACK);//设置字体颜色
                axisX.setHasLines(true);//x轴的分割线
                axisX.setValues(mAxisXValues); //设置x轴各个坐标点名称

                //对Y轴 ,数据和属性的设置
                axisY.setTextSize(10);
                axisY.setHasTiltedLabels(false);//true表示斜的
                axisY.setTextColor(Color.BLACK);//设置字体颜色
                axisY.setValues(mAxisYValues); //设置x轴各个坐标点名称


                data.setAxisXBottom(axisX);//x轴坐标线的文字,显示在x轴下方
//            data.setAxisXTop();      //显示在x轴上方
                data.setAxisYLeft(axisY);   //显示在y轴的左边

            } else {
                data.setAxisXBottom(null);
                data.setAxisYLeft(null);
            }

            data.setBaseValue(2f); //设置反向覆盖区域颜色  ??
            data.setValueLabelBackgroundAuto(false);//设置数据背景是否跟随节点颜色
            data.setValueLabelBackgroundColor(Color.BLUE);//设置数据背景颜色
            data.setValueLabelBackgroundEnabled(false);//设置是否有数据背景
            data.setValueLabelsTextColor(Color.RED);//设置数据文字颜色
            data.setValueLabelTextSize(11);//设置数据文字大小
            data.setValueLabelTypeface(Typeface.MONOSPACE);//设置数据文字样式
            lineChart.setLineChartData(data);     //将数据添加到控件中
            lineChart.setViewportCalculationEnabled(false);

            lineChart.setZoomType(ZoomType.HORIZONTAL_AND_VERTICAL);//设置线条可以水平方向收缩
            final Viewport v = new Viewport(lineChart.getMaximumViewport());
            v.bottom = 0;
            v.top = yMax+10;
            v.left = 0;
            v.right = listTemp.size(); //  listBlood.size() - 1//如何解释
            lineChart.setMaximumViewport(v);
            lineChart.setCurrentViewport(v);

        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    public static void startActivity(Context context, String projectId) {
        Intent intent = new Intent(context, DustLineChartActivity.class);
        intent.putExtra("projectId", projectId);
        context.startActivity(intent);
    }

    @OnClick({R.id.layout_back, R.id.layout_right})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.layout_back:
                finish();
                break;
            case R.id.layout_right:
                chooseDate();
                break;
        }
    }

    private void chooseDate() {
        Calendar cal = Calendar.getInstance();
        try {
            cal.setTime(Utils.DATE_FORMATER.parse(rightTv.getText().toString()+"-01"));
        } catch (ParseException e) {
            e.printStackTrace();
        }
        Calendar curCal = Calendar.getInstance();
        int curMonth = cal.get(Calendar.MONTH) + 1;
        int curYear = cal.get(Calendar.YEAR);
        final DatePicker picker = new DatePicker(this, DateTimePicker.YEAR_MONTH);
        picker.setRangeEnd(curCal.get(Calendar.YEAR), curCal.get(Calendar.MONTH) + 1);
        picker.setRangeStart(2010, 1);
        picker.setUseWeight(true);
        picker.setSelectedItem(curYear, curMonth);
        picker.setOnDatePickListener(new DatePicker.OnYearMonthPickListener() {
            @Override
            public void onDatePicked(String year, String month) {
                rightTv.setText(year + "-" + month);
                doRequest();
            }
        });
        picker.show();
    }
}

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程网。

--结束END--

本文标题: Android图表库HelloChart绘制多折线图

本文链接: https://www.lsjlt.com/news/139343.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Android图表库HelloChart绘制多折线图
    本文实例为大家分享了Android图表库HelloChart绘制多折线图的具体代码,供大家参考,具体内容如下 一、效果图 二、实现步骤 1.添加依赖库 compile 'com.g...
    99+
    2022-11-13
  • 怎么用Android的HelloChart绘制多折线图
    本文小编为大家详细介绍“怎么用Android的HelloChart绘制多折线图”,内容详细,步骤清晰,细节处理妥当,希望这篇“怎么用Android的HelloChart绘制多折线图”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来...
    99+
    2023-06-29
  • Origin绘制多折线图
    Origin的优势区间相对于python和R在于数据量大时处理方便 尤其是多维度、多线、多拟合 尝试复现上图 首先把20列数据复制过去 全选之后(ctrl+A),然后点Plot——Line 随便...
    99+
    2023-09-13
    python 开发语言
  • Android怎么绘制双折线图
    本篇内容主要讲解“Android怎么绘制双折线图”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Android怎么绘制双折线图”吧!自定义View实现双折线图,可点击,点击后带标签描述,暂未实现拖...
    99+
    2023-06-29
  • Android绘制双折线图的方法
    本文实例为大家分享了Android绘制双折线图的具体代码,供大家参考,具体内容如下 自定义View实现双折线图,可点击,点击后带标签描述,暂未实现拖动的功能,实现效果如下: 代码如...
    99+
    2022-11-13
  • android绘制曲线和折线图的方法
    本文实例为大家分享了android绘制曲线和折线图的具体代码,供大家参考,具体内容如下 (曲线)  (折线) 1.CurveView.java package com....
    99+
    2022-11-13
  • 怎么使用Android LineChart绘制折线图
    这篇文章主要介绍“怎么使用Android LineChart绘制折线图”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“怎么使用Android LineChart绘制折线图”文章能帮...
    99+
    2023-07-05
  • Android 使用MPAndroidChart:v3.1.0绘制动态折线图
    工作需要绘制一张可动态添加的折线图,经过筛选,选择MPAndroidChart:v3.1.0。 **使用方法:** 1、添加bui...
    99+
    2022-06-06
    折线图 mpandroidchart 动态 Android
  • Android实现绘制折线图APP代码
    目录一.总体设计二.具体模块实现三.效果展示四.功能展望总结一.总体设计 1.寻找规律,公式化的生成坐标系。 2.将生成坐标系的关键参数设置为可自定义,从而可变的可以生成自己想要的坐...
    99+
    2022-11-13
  • QT中QChart绘制折线图
    目录一、简单绘图二、绘制折线图实例一、简单绘图 Qt Charts基于Qt的Graphics View架构,其核心组件是QChartView 和 QChart QChartView是...
    99+
    2022-11-13
  • 使用python绘制折线图
    前言 最近在完成一篇气象预报的论文,涉及到深度学习与气象绘图。我觉得还是有必要写一下我在这个过程中的一些经验总结,借此机会与各位同道交流。 一、基础命令 在我们使用深度学习时,肯定会用到绘图命令,绘制loss与val_loss等等,以此查看...
    99+
    2023-09-22
    python 开发语言
  • python怎么绘制折线图
    在Python中,可以使用Matplotlib库来绘制折线图。下面是一个简单的示例:```pythonimport matplotl...
    99+
    2023-08-19
    python
  • Android LineChart绘制折线图的示例详解
    1.首先在 build.gradle 里导入包 implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'&n...
    99+
    2023-03-24
    Android LineChart绘制折线图 Android LineChart折线图 Android LineChart
  • excel两列数据绘制单折线图表
    目录 1. 折线图(二维)2. x轴y轴散点图(可操作横轴) 有关excel的两列数据绘制出一张折线图或柱状图的方法。要求两列数据分别成为图表的横坐标和纵坐标。 1. 折线图(二维)...
    99+
    2023-08-31
    python 开发语言
  • 详解Android图表 MPAndroidChart折线图
    1.介绍 MPAndroidChart GitHub地址  MPAndroidChart的强大之处就不在多说了,目前最新的版本是3.0.1,在新版本中很多方法都被...
    99+
    2022-06-06
    android图表 mpandroidchart Android
  • Python pyecharts怎么绘制折线图
    这篇文章主要介绍“Python pyecharts怎么绘制折线图”,在日常操作中,相信很多人在Python pyecharts怎么绘制折线图问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”P...
    99+
    2023-06-29
  • python使用matplotlib绘制折线图
    前言: 我的python学习也告一段落了。不过有些,方法还是打算总结一下和大家分享。我整理了使用matplotlib绘制折线图的一般步骤,按照这个步骤走绘制折线图一般都没啥问题。其实...
    99+
    2022-11-10
  • Python pyecharts绘制折线图详解
    一、绘制折线图 import seaborn as sns import numpy as np import pandas as pd import matplotlib as m...
    99+
    2022-11-13
  • QtQChart实现折线图的绘制
    目录前言1.使用2.效果如下3.具体实现如下4.刷新QChart5.PCL 点排序前言 QChart  是常用的图表;我这里做了一个 default 和 custom 1....
    99+
    2023-05-17
    Qt QChart绘制折线图 Qt QChart折线图 Qt QChart
  • Python如何绘制Matplotlib折线图
    本篇内容介绍了“Python如何绘制Matplotlib折线图”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!一、Matplotlib 绘图在...
    99+
    2023-06-30
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作