subtext

Srt字幕文件解析

ぐ巨炮叔叔 提交于 2021-02-16 23:39:46
// // ViewController.m // 字幕解析 // // Created by admin on 2018/8/30. // Copyright © 2018年 admin. All rights reserved. // #import " ViewController.h " @interface ViewController () @end @implementation ViewController - ( void )viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self findMatch]; } -( void )findMatch { /* 444 00:48:25,670 --> 00:48:26,920 你就是死在那儿的 */ // 当被检索的字符串太大时,用block控制查找 NSString *srtText = [[NSString alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource: @" mp4video " ofType: @" srt " ] encoding

echarts 双Y轴图表

元气小坏坏 提交于 2020-11-23 09:14:35
直接代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="https://www.echartsjs.com/examples/vendors/echarts/echarts.min.js?_v_=1571424732409"></script> </head> <body> <!--支出表--> <div style="width: 1000px;height: 500px;background-color: #222222" id="test1"> </div> </body> <script> var chart1 = echarts.init(document.getElementById('test1' )); var option = { title: [ { top: '40%' , left: 10 , subtextStyle: { align: 'left' , color: '#ffffff' , fontSize: 12 , }, subtext: '每\n月\n执\n行\n金\n额' // \n换行 }, { top: '40%' , right: 10 , subtextStyle: { align:

PHP 使用Echarts生成数据统计报表详解

[亡魂溺海] 提交于 2020-10-13 05:01:09
echarts统计,简单示例 先看下效果图 看下代码 HTML页面 为ECharts准备一个Dom,宽高自定义 <p class="panel panel-info">   <p class="panel-body">     <p id="echart_show" style="height:500px"></p>   </p> </p> js文件可以参考官网,或者在这里下载,引入 <script type="text/javascript" src="/Public/admin/lib/jquery/nowdatachars/echarts-all.js"></script> 下面是具体方法 < script type = "text/javascript" > var date = [], num = []; $ ( document ). ready ( function () { // 绘制反馈量图形 var init_echarts = function () { var refreshChart = function ( show_data ) { my_demo_chart = echarts . init ( document . getElementById ( 'echart_show' )); my_demo_chart . showLoading ({

echarts Map(地图) 不同颜色区块显示

折月煮酒 提交于 2020-05-01 18:15:53
echarts Map(地图) 不同区块显示 这里以重庆地图为例 配置项: var option = { title : { text: '重庆市', subtext: '', x:'left' }, tooltip : { trigger: 'item', formatter: '{b}', itemSize:'14px' }, legend: { orient: 'vertical', x:'center', data:['重庆市区县'] }, dataRange: { x: 'left', y: 'bottom', splitList: [ {start: 1500}, {start: 900, end: 1500}, {start: 310, end: 1000}, {start: 200, end: 300}, {start: 10, end: 200, label: '10 到 200(火灾数量)'}, {start: 5, end: 5, label: '5(火灾数量)', color: 'black'}, {end: 10} ], color: ['#eee', '#949fb1', '#f3ce85'] }, series : [ { name: '重庆市区县', type: 'map', mapType: '重庆', roam: true, itemStyle: