echart title update

This commit is contained in:
caishi 2023-03-08 10:23:37 +08:00
parent 08ad756b6b
commit fc7537e3a1
5 changed files with 28 additions and 14 deletions

View File

@ -259,16 +259,19 @@ class Activity extends Component{
<div className="normalBox mt20">
<div class="normalBox-title">项目演化分析</div>
<div className="echartBox">
<span className="echartTitle" style={{marginTop:0}}>项目演化图</span>
{/* <ProjectScale data={undefined} url={ai_shang_v2_url}/> */}
{/* <SmoothLine url={ai_shang_v2_url}/> */}
<div>
<SmoothLineTwo url={ai_shang_v4_url}/>
</div>
<span className="echartTitle">分支演化图</span>
<span className="echartTitle" style={{marginTop:0}}>开源项目社群激发熵</span>
<BranchLine url={ai_shang_v1_url}/>
<span className="echartTitle">Issue演化图</span>
<p>基于信息熵围绕疑修任务的社群群智激发演化度量</p>
<span className="echartTitle">开源项目代码变更熵</span>
<IssueLine url={ai_shang_v3_url}/>
<p>基于信息熵围绕代码提交的软件代码变更演化度量</p>
<span className="echartTitle">开源项目社区演化熵</span>
<SmoothLineTwo url={ai_shang_v4_url}/>
<p>基于信息熵围绕项目社群的社区分裂缩减合并和扩大演化行为度量</p>
</div>
</div>
}

View File

@ -9,6 +9,12 @@
.echartBox{
padding:10px 15px;
}
.echartBox > p{
color: rgb(41, 41, 41);
text-align: center;
font-size: 16px;
padding-bottom: 20px!important;
}
.contentBox{
width: 1200px;
margin:0px auto;

View File

@ -31,14 +31,16 @@ function Line({url}) {
grid: {
left: '5%',
right: '1%',
top: '5%'
top: '8%'
},
xAxis: {
data: data.map(function (item) {
return item[0];
})
},
yAxis: {},
yAxis: {
name:"社群激发熵"
},
dataZoom: [
{
startValue: '2022-06-01'

View File

@ -33,14 +33,16 @@ function Line({url}) {
grid: {
left: '5%',
right: '1%',
top: '5%'
top: '8%'
},
xAxis: {
data: data.map(function (item) {
return item[0];
})
},
yAxis: {},
yAxis: {
name:"代码变更熵"
},
dataZoom: [
{
type: 'inside',

View File

@ -41,7 +41,7 @@ function SmoothLineTwo({url}) {
grid: {
left: '5%',
right: '1%',
top: '5%'
top: '8%',
},
legend: {
data: ['分裂指数', '缩减指数' ,'合并指数', '扩张指数']
@ -51,7 +51,8 @@ function SmoothLineTwo({url}) {
},
color: ['#ff6868','#1684fc',"#02cafd",'#a491d7','#e840f7',"#36bba6","#7b32b2"],
yAxis: {
type: 'value'
type: 'value',
name:"社区演化熵"
},
dataZoom: [
{